| 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 "content/browser/tab_contents/tab_contents_observer.h" | 9 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // ExtensionFunctionDispatcher::Delegate overrides. | 90 // ExtensionFunctionDispatcher::Delegate overrides. |
| 91 virtual Browser* GetBrowser(); | 91 virtual Browser* GetBrowser(); |
| 92 virtual gfx::NativeView GetNativeViewOfHost(); | 92 virtual gfx::NativeView GetNativeViewOfHost(); |
| 93 virtual gfx::NativeWindow GetCustomFrameNativeWindow(); | 93 virtual gfx::NativeWindow GetCustomFrameNativeWindow(); |
| 94 virtual TabContents* GetAssociatedTabContents() const; | 94 virtual TabContents* GetAssociatedTabContents() const; |
| 95 | 95 |
| 96 // Message handlers. | 96 // Message handlers. |
| 97 void OnDidGetApplicationInfo(int32 page_id, const WebApplicationInfo& info); | 97 void OnDidGetApplicationInfo(int32 page_id, const WebApplicationInfo& info); |
| 98 void OnInstallApplication(const WebApplicationInfo& info); | 98 void OnInstallApplication(const WebApplicationInfo& info); |
| 99 void OnInlineWebstoreInstall(const std::string& webstore_item_id); |
| 99 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 100 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 100 | 101 |
| 101 // App extensions related methods: | 102 // App extensions related methods: |
| 102 | 103 |
| 103 // Resets app_icon_ and if |extension| is non-null creates a new | 104 // Resets app_icon_ and if |extension| is non-null creates a new |
| 104 // ImageLoadingTracker to load the extension's image. | 105 // ImageLoadingTracker to load the extension's image. |
| 105 void UpdateExtensionAppIcon(const Extension* extension); | 106 void UpdateExtensionAppIcon(const Extension* extension); |
| 106 | 107 |
| 107 // ImageLoadingTracker::Observer. | 108 // ImageLoadingTracker::Observer. |
| 108 virtual void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource, | 109 virtual void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 126 | 127 |
| 127 // Cached web app info data. | 128 // Cached web app info data. |
| 128 WebApplicationInfo web_app_info_; | 129 WebApplicationInfo web_app_info_; |
| 129 | 130 |
| 130 TabContentsWrapper* wrapper_; | 131 TabContentsWrapper* wrapper_; |
| 131 | 132 |
| 132 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); | 133 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ | 136 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ |
| OLD | NEW |