| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_API_TABS_ASH_PANEL_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual content::WebContents* GetWebContents() const OVERRIDE; | 46 virtual content::WebContents* GetWebContents() const OVERRIDE; |
| 47 | 47 |
| 48 // LauncherFaviconLoader::Delegate overrides: | 48 // LauncherFaviconLoader::Delegate overrides: |
| 49 virtual void FaviconUpdated() OVERRIDE; | 49 virtual void FaviconUpdated() OVERRIDE; |
| 50 | 50 |
| 51 // ExtensionFunctionDispatcher::Delegate | 51 // ExtensionFunctionDispatcher::Delegate |
| 52 virtual extensions::WindowController* GetExtensionWindowController() const | 52 virtual extensions::WindowController* GetExtensionWindowController() const |
| 53 OVERRIDE; | 53 OVERRIDE; |
| 54 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 54 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 55 | 55 |
| 56 LauncherFaviconLoader* launcher_favicon_loader_for_test() { |
| 57 return launcher_favicon_loader_.get(); |
| 58 } |
| 59 |
| 56 private: | 60 private: |
| 57 // content::WebContentsObserver | 61 // content::WebContentsObserver |
| 58 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 62 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 59 | 63 |
| 60 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 64 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 61 | 65 |
| 62 ShellWindow* host_; | 66 ShellWindow* host_; |
| 63 GURL url_; | 67 GURL url_; |
| 64 scoped_ptr<content::WebContents> web_contents_; | 68 scoped_ptr<content::WebContents> web_contents_; |
| 65 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 69 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 66 scoped_ptr<AshPanelWindowController> window_controller_; | 70 scoped_ptr<AshPanelWindowController> window_controller_; |
| 67 scoped_ptr<LauncherFaviconLoader> launcher_favicon_loader_; | 71 scoped_ptr<LauncherFaviconLoader> launcher_favicon_loader_; |
| 68 | 72 |
| 69 DISALLOW_COPY_AND_ASSIGN(AshPanelContents); | 73 DISALLOW_COPY_AND_ASSIGN(AshPanelContents); |
| 70 }; | 74 }; |
| 71 | 75 |
| 72 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_ | 76 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_ASH_PANEL_CONTENTS_H_ |
| OLD | NEW |