OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int callback_id); | 115 int callback_id); |
116 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 116 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
117 | 117 |
118 // App extensions related methods: | 118 // App extensions related methods: |
119 | 119 |
120 // Resets app_icon_ and if |extension| is non-null creates a new | 120 // Resets app_icon_ and if |extension| is non-null creates a new |
121 // ImageLoadingTracker to load the extension's image. | 121 // ImageLoadingTracker to load the extension's image. |
122 void UpdateExtensionAppIcon(const Extension* extension); | 122 void UpdateExtensionAppIcon(const Extension* extension); |
123 | 123 |
124 // ImageLoadingTracker::Observer. | 124 // ImageLoadingTracker::Observer. |
125 virtual void OnImageLoaded(SkBitmap* image, const ExtensionResource& resource, | 125 virtual void OnImageLoaded(const gfx::Image& image, |
| 126 const std::string& extension_id, |
126 int index) OVERRIDE; | 127 int index) OVERRIDE; |
127 | 128 |
128 // WebstoreInlineInstaller::Delegate. | 129 // WebstoreInlineInstaller::Delegate. |
129 virtual void OnInlineInstallSuccess(int install_id, | 130 virtual void OnInlineInstallSuccess(int install_id, |
130 int return_route_id) OVERRIDE; | 131 int return_route_id) OVERRIDE; |
131 virtual void OnInlineInstallFailure(int install_id, | 132 virtual void OnInlineInstallFailure(int install_id, |
132 int return_route_id, | 133 int return_route_id, |
133 const std::string& error) OVERRIDE; | 134 const std::string& error) OVERRIDE; |
134 | 135 |
135 // AppNotifyChannelSetup::Delegate. | 136 // AppNotifyChannelSetup::Delegate. |
(...skipping 23 matching lines...) Expand all Loading... |
159 | 160 |
160 // Cached web app info data. | 161 // Cached web app info data. |
161 WebApplicationInfo web_app_info_; | 162 WebApplicationInfo web_app_info_; |
162 | 163 |
163 TabContentsWrapper* wrapper_; | 164 TabContentsWrapper* wrapper_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); | 166 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); |
166 }; | 167 }; |
167 | 168 |
168 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ | 169 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ |
OLD | NEW |