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

Side by Side Diff: chrome/browser/extensions/page_action_controller.h

Issue 313453002: Resubmit: Block content scripts from executing until user grants permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest master Created 6 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/location_bar_controller.h" 10 #include "chrome/browser/extensions/location_bar_controller.h"
(...skipping 15 matching lines...) Expand all
26 virtual ExtensionAction* GetActionForExtension(const Extension* extension) 26 virtual ExtensionAction* GetActionForExtension(const Extension* extension)
27 OVERRIDE; 27 OVERRIDE;
28 virtual LocationBarController::Action OnClicked( 28 virtual LocationBarController::Action OnClicked(
29 const Extension* extension) OVERRIDE; 29 const Extension* extension) OVERRIDE;
30 virtual void OnNavigated() OVERRIDE; 30 virtual void OnNavigated() OVERRIDE;
31 31
32 private: 32 private:
33 // Returns the associated Profile. 33 // Returns the associated Profile.
34 Profile* GetProfile(); 34 Profile* GetProfile();
35 35
36 // The current page actions for the associated WebContents.
37 std::vector<ExtensionAction*> current_actions_;
38
39 // The associated WebContents. 36 // The associated WebContents.
40 content::WebContents* web_contents_; 37 content::WebContents* web_contents_;
41 38
42 DISALLOW_COPY_AND_ASSIGN(PageActionController); 39 DISALLOW_COPY_AND_ASSIGN(PageActionController);
43 }; 40 };
44 41
45 } // namespace extensions 42 } // namespace extensions
46 43
47 #endif // CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_PAGE_ACTION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/location_bar_controller.cc ('k') | chrome/browser/extensions/user_script_master.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698