| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // ImageLoadingTracker::Observer. | 120 // ImageLoadingTracker::Observer. |
| 121 virtual void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource, | 121 virtual void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource, |
| 122 int index) OVERRIDE; | 122 int index) OVERRIDE; |
| 123 | 123 |
| 124 // WebstoreInlineInstaller::Delegate. | 124 // WebstoreInlineInstaller::Delegate. |
| 125 virtual void OnInlineInstallSuccess(int install_id) OVERRIDE; | 125 virtual void OnInlineInstallSuccess(int install_id) OVERRIDE; |
| 126 virtual void OnInlineInstallFailure(int install_id, | 126 virtual void OnInlineInstallFailure(int install_id, |
| 127 const std::string& error) OVERRIDE; | 127 const std::string& error) OVERRIDE; |
| 128 | 128 |
| 129 // AppNotifyChannelSetup::Delegate. | 129 // AppNotifyChannelSetup::Delegate. |
| 130 virtual void AppNotifyChannelSetupComplete(const std::string& channel_id, | 130 virtual void AppNotifyChannelSetupComplete( |
| 131 const std::string& error, | 131 const std::string& channel_id, |
| 132 int return_route_id, | 132 const std::string& error, |
| 133 int callback_id) OVERRIDE; | 133 const AppNotifyChannelSetup* setup) OVERRIDE; |
| 134 | 134 |
| 135 // Data for app extensions --------------------------------------------------- | 135 // Data for app extensions --------------------------------------------------- |
| 136 | 136 |
| 137 // If non-null this tab is an app tab and this is the extension the tab was | 137 // If non-null this tab is an app tab and this is the extension the tab was |
| 138 // created for. | 138 // created for. |
| 139 const Extension* extension_app_; | 139 const Extension* extension_app_; |
| 140 | 140 |
| 141 // Icon for extension_app_ (if non-null) or a manually-set icon for | 141 // Icon for extension_app_ (if non-null) or a manually-set icon for |
| 142 // non-extension apps. | 142 // non-extension apps. |
| 143 SkBitmap extension_app_icon_; | 143 SkBitmap extension_app_icon_; |
| 144 | 144 |
| 145 // Process any extension messages coming from the tab. | 145 // Process any extension messages coming from the tab. |
| 146 ExtensionFunctionDispatcher extension_function_dispatcher_; | 146 ExtensionFunctionDispatcher extension_function_dispatcher_; |
| 147 | 147 |
| 148 // Used for loading extension_app_icon_. | 148 // Used for loading extension_app_icon_. |
| 149 scoped_ptr<ImageLoadingTracker> extension_app_image_loader_; | 149 scoped_ptr<ImageLoadingTracker> extension_app_image_loader_; |
| 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 |