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_ |