OLD | NEW |
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_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/browser/extensions/tab_helper.h" | 12 #include "chrome/browser/extensions/tab_helper.h" |
13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
14 | 14 |
15 class ExtensionService; | |
16 | |
17 namespace extensions { | 15 namespace extensions { |
18 | 16 |
19 class ExtensionSystem; | 17 class ExtensionSystem; |
20 | 18 |
21 // Controls the script bubble in the omnibox, which displays information about | 19 // Controls the script bubble in the omnibox, which displays information about |
22 // extensions which are interacting with the current tab. | 20 // extensions which are interacting with the current tab. |
23 class ScriptBubbleController | 21 class ScriptBubbleController |
24 : public TabHelper::ScriptExecutionObserver, | 22 : public TabHelper::ScriptExecutionObserver, |
25 public content::WebContentsObserver { | 23 public content::WebContentsObserver { |
26 public: | 24 public: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 59 |
62 // The accumulated set of extension IDs that are operating on this tab. | 60 // The accumulated set of extension IDs that are operating on this tab. |
63 std::set<std::string> extensions_running_scripts_; | 61 std::set<std::string> extensions_running_scripts_; |
64 | 62 |
65 DISALLOW_COPY_AND_ASSIGN(ScriptBubbleController); | 63 DISALLOW_COPY_AND_ASSIGN(ScriptBubbleController); |
66 }; | 64 }; |
67 | 65 |
68 } // namespace extensions | 66 } // namespace extensions |
69 | 67 |
70 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ | 68 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ |
OLD | NEW |