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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698