OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_PROVIDER_H_ | |
6 #define CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_PROVIDER_H_ | |
7 | |
8 #include "chrome/browser/extensions/location_bar_controller.h" | |
9 | |
10 class ExtensionAction; | |
11 | |
12 namespace extensions { | |
13 | |
14 class Extension; | |
15 | |
16 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.
| |
17 public: | |
18 // Returns the action for the given extension, or NULL if there isn't one. | |
19 virtual ExtensionAction* GetActionForExtension( | |
20 const Extension* extension) = 0; | |
21 | |
22 // Handles a click on an extension action. | |
23 virtual LocationBarController::Action OnClicked( | |
24 const Extension* extension) = 0; | |
25 | |
26 // A notification that the WebContents has navigated in the main frame (and | |
27 // not in page), so any state relating to the current page should likely be | |
28 // reset. | |
29 virtual void OnNavigated() = 0; | |
30 }; | |
31 | |
32 } // namespace extensions | |
33 | |
34 #endif // CHROME_BROWSER_EXTENSIONS_LOCATION_BAR_CONTROLLER_PROVIDER_H_ | |
OLD | NEW |