Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1654)

Unified Diff: chrome/browser/extensions/location_bar_controller_provider.h

Issue 270153004: Introduce ActiveScriptController; track active extension scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Kalman's Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/location_bar_controller_provider.h
diff --git a/chrome/browser/extensions/location_bar_controller_provider.h b/chrome/browser/extensions/location_bar_controller_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..f2b149bd33fbed9fbb9585d7dc576d6b99445f81
--- /dev/null
+++ b/chrome/browser/extensions/location_bar_controller_provider.h
@@ -0,0 +1,34 @@
+// Copyright 2014 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.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_PROVIDER_H_
+#define CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_PROVIDER_H_
+
+#include "chrome/browser/extensions/location_bar_controller.h"
+
+class ExtensionAction;
+
+namespace extensions {
+
+class Extension;
+
+class LocationBarControllerProvider {
not at google - send to devlin 2014/05/08 20:47:09 the name of this class implies that it provides lo
Devlin 2014/05/08 23:01:00 Not a delegate either. Or a helper, filter, etc.
+ public:
+ // Returns the action for the given extension, or NULL if there isn't one.
+ virtual ExtensionAction* GetActionForExtension(
+ const Extension* extension) = 0;
+
+ // Handles a click on an extension action.
+ virtual LocationBarController::Action OnClicked(
+ const Extension* extension) = 0;
+
+ // A notification that the WebContents has navigated in the main frame (and
+ // not in page), so any state relating to the current page should likely be
+ // reset.
+ virtual void OnNavigated() = 0;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698