| 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 // |tab_helper| must outlive the created ScriptBadgeController. |
| 18 explicit ScriptBubbleController(TabHelper* tab_helper); |
| 19 |
| 20 // TabHelper::ContentScriptObserver implementation |
| 21 virtual void OnContentScriptsExecuting( |
| 22 const content::WebContents* web_contents, |
| 23 const ExecutingScriptsMap& extension_ids, |
| 24 int32 page_id, |
| 25 const GURL& on_url) OVERRIDE; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(ScriptBubbleController); |
| 29 }; |
| 30 |
| 31 } // namespace extensions |
| 32 |
| 33 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |