OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/extensions/app_notify_channel_setup.h" | 10 #include "chrome/browser/extensions/app_notify_channel_setup.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 // Sets a non-extension app icon associated with TabContents and fires an | 86 // Sets a non-extension app icon associated with TabContents and fires an |
87 // INVALIDATE_TITLE navigation state change to trigger repaint of title. | 87 // INVALIDATE_TITLE navigation state change to trigger repaint of title. |
88 void SetAppIcon(const SkBitmap& app_icon); | 88 void SetAppIcon(const SkBitmap& app_icon); |
89 | 89 |
90 private: | 90 private: |
91 // TabContentsObserver overrides. | 91 // TabContentsObserver overrides. |
92 virtual void DidNavigateMainFrame( | 92 virtual void DidNavigateMainFrame( |
93 const content::LoadCommittedDetails& details, | 93 const content::LoadCommittedDetails& details, |
94 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 94 const content::FrameNavigateParams& params) OVERRIDE; |
95 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 95 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
96 | 96 |
97 // ExtensionFunctionDispatcher::Delegate overrides. | 97 // ExtensionFunctionDispatcher::Delegate overrides. |
98 virtual Browser* GetBrowser() OVERRIDE; | 98 virtual Browser* GetBrowser() OVERRIDE; |
99 virtual gfx::NativeView GetNativeViewOfHost() OVERRIDE; | 99 virtual gfx::NativeView GetNativeViewOfHost() OVERRIDE; |
100 virtual TabContents* GetAssociatedTabContents() const OVERRIDE; | 100 virtual TabContents* GetAssociatedTabContents() const OVERRIDE; |
101 | 101 |
102 // Message handlers. | 102 // Message handlers. |
103 void OnDidGetApplicationInfo(int32 page_id, const WebApplicationInfo& info); | 103 void OnDidGetApplicationInfo(int32 page_id, const WebApplicationInfo& info); |
104 void OnInstallApplication(const WebApplicationInfo& info); | 104 void OnInstallApplication(const WebApplicationInfo& info); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 // Cached web app info data. | 151 // Cached web app info data. |
152 WebApplicationInfo web_app_info_; | 152 WebApplicationInfo web_app_info_; |
153 | 153 |
154 TabContentsWrapper* wrapper_; | 154 TabContentsWrapper* wrapper_; |
155 | 155 |
156 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); | 156 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); |
157 }; | 157 }; |
158 | 158 |
159 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ | 159 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ |
OLD | NEW |