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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 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
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_SCRIPT_BADGE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SCRIPT_BADGE_CONTROLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_SCRIPT_BADGE_CONTROLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SCRIPT_BADGE_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
14 #include "chrome/browser/extensions/action_box_controller.h" 14 #include "chrome/browser/extensions/action_box_controller.h"
15 #include "chrome/browser/extensions/script_executor.h" 15 #include "chrome/browser/extensions/script_executor.h"
16 #include "chrome/browser/extensions/script_executor_impl.h" 16 #include "chrome/browser/extensions/script_executor_impl.h"
17 #include "content/public/browser/web_contents_observer.h" 17 #include "content/public/browser/web_contents_observer.h"
18 18
19 class Extension;
20 class ExtensionAction; 19 class ExtensionAction;
21 class ExtensionService; 20 class ExtensionService;
22 class TabContentsWrapper; 21 class TabContentsWrapper;
23 22
24 namespace extensions { 23 namespace extensions {
25 24
25 class Extension;
26
26 // An ActionBoxController which corresponds to script badges, and implements 27 // An ActionBoxController which corresponds to script badges, and implements
27 // ScriptExecutor in order to show those scripts in the action box too. 28 // ScriptExecutor in order to show those scripts in the action box too.
28 class ScriptBadgeController : public ActionBoxController, 29 class ScriptBadgeController : public ActionBoxController,
29 public ScriptExecutor, 30 public ScriptExecutor,
30 public content::WebContentsObserver { 31 public content::WebContentsObserver {
31 public: 32 public:
32 explicit ScriptBadgeController(TabContentsWrapper* tab_contents); 33 explicit ScriptBadgeController(TabContentsWrapper* tab_contents);
33 virtual ~ScriptBadgeController(); 34 virtual ~ScriptBadgeController();
34 35
35 // ActionBoxController implementation. 36 // ActionBoxController implementation.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // that get generated for extensions that haven't declared anything. 74 // that get generated for extensions that haven't declared anything.
74 typedef std::map<std::string, linked_ptr<ExtensionAction> > ScriptBadgeMap; 75 typedef std::map<std::string, linked_ptr<ExtensionAction> > ScriptBadgeMap;
75 ScriptBadgeMap script_badges_; 76 ScriptBadgeMap script_badges_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(ScriptBadgeController); 78 DISALLOW_COPY_AND_ASSIGN(ScriptBadgeController);
78 }; 79 };
79 80
80 } // namespace extensions 81 } // namespace extensions
81 82
82 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_BADGE_CONTROLLER_H_ 83 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_BADGE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc ('k') | chrome/browser/extensions/test_extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698