Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "chrome/browser/extensions/tab_helper.h" | |
| 10 | |
| 11 namespace extensions { | |
| 12 | |
| 13 // Controls the script bubble in the omnibox, which displays information about | |
| 14 // extensions which are interacting with the current tab. | |
| 15 class ScriptBubbleController : public TabHelper::ContentScriptObserver { | |
| 16 public: | |
| 17 explicit ScriptBubbleController(TabHelper* tab_helper); | |
|
Jeffrey Yasskin
2012/10/02 00:26:31
Are there lifetime requirements on tab_helper vs *
Aaron Boodman
2012/10/02 01:28:52
Done.
| |
| 18 | |
| 19 // TabHelper::ContentScriptObserver implementation | |
| 20 virtual void OnContentScriptsExecuting( | |
| 21 const content::WebContents* web_contents, | |
| 22 const ExecutingScriptsMap& extension_ids, | |
| 23 int32 page_id, | |
| 24 const GURL& on_url) OVERRIDE; | |
| 25 | |
| 26 private: | |
| 27 DISALLOW_COPY_AND_ASSIGN(ScriptBubbleController); | |
| 28 }; | |
| 29 | |
| 30 } // namespace extensions | |
| 31 | |
| 32 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ | |
| OLD | NEW |