summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_webnavigation_api.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-08 12:29:47 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-08 12:29:47 +0000
commit3c979aba9304d10d41d224814be4feeab279df02 (patch)
tree77d419a10bdbcd6abbe199cb0129e2fdc52b5a79 /chrome/browser/extensions/extension_webnavigation_api.h
parent3367f02ec9f837a129de683872687c0dcfb0ff95 (diff)
downloadchromium_src-3c979aba9304d10d41d224814be4feeab279df02.zip
chromium_src-3c979aba9304d10d41d224814be4feeab279df02.tar.gz
chromium_src-3c979aba9304d10d41d224814be4feeab279df02.tar.bz2
Revert 58809 - Implement the webNavigation.onCommitted event.
BUG=50943 TEST=ExtensionApiTest.WebNavigationEvents Review URL: http://codereview.chromium.org/3369007 TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/3359013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_webnavigation_api.h')
-rw-r--r--chrome/browser/extensions/extension_webnavigation_api.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/chrome/browser/extensions/extension_webnavigation_api.h b/chrome/browser/extensions/extension_webnavigation_api.h
deleted file mode 100644
index 77182e1..0000000
--- a/chrome/browser/extensions/extension_webnavigation_api.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Defines the Chrome Extensions WebNavigation API functions for observing and
-// intercepting navigation events, as specified in
-// chrome/common/extensions/api/extension_api.json.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_
-#pragma once
-
-#include "base/singleton.h"
-#include "chrome/browser/extensions/extension_function.h"
-#include "chrome/browser/tab_contents/navigation_controller.h"
-#include "chrome/common/notification_registrar.h"
-#include "googleurl/src/gurl.h"
-
-// Observes navigation notifications and routes them as events to the extension
-// system.
-class ExtensionWebNavigationEventRouter : public NotificationObserver {
- public:
- // Single instance of the event router.
- static ExtensionWebNavigationEventRouter* GetInstance();
-
- void Init();
-
- private:
- friend struct DefaultSingletonTraits<ExtensionWebNavigationEventRouter>;
-
- ExtensionWebNavigationEventRouter() {}
- virtual ~ExtensionWebNavigationEventRouter() {}
-
- // NotificationObserver implementation.
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
-
- // Handler for the NAV_ENTRY_COMMITTED event. The method takes the details of
- // such an event and constructs a suitable JSON formatted extension event
- // from it.
- void NavEntryCommitted(NavigationController* controller,
- NavigationController::LoadCommittedDetails* details);
-
- // This method dispatches events to the extension message service.
- void DispatchEvent(Profile* context,
- const char* event_name,
- const std::string& json_args);
-
- // Used for tracking registrations to navigation notifications.
- NotificationRegistrar registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionWebNavigationEventRouter);
-};
-
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_