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