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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void OnDidGetApplicationInfo(int32 page_id, const WebApplicationInfo& info); | 109 void OnDidGetApplicationInfo(int32 page_id, const WebApplicationInfo& info); |
110 void OnInstallApplication(const WebApplicationInfo& info); | 110 void OnInstallApplication(const WebApplicationInfo& info); |
111 void OnInlineWebstoreInstall(int install_id, | 111 void OnInlineWebstoreInstall(int install_id, |
112 int return_route_id, | 112 int return_route_id, |
113 const std::string& webstore_item_id, | 113 const std::string& webstore_item_id, |
114 const GURL& requestor_url); | 114 const GURL& requestor_url); |
115 void OnGetAppNotifyChannel(const GURL& requestor_url, | 115 void OnGetAppNotifyChannel(const GURL& requestor_url, |
116 const std::string& client_id, | 116 const std::string& client_id, |
117 int return_route_id, | 117 int return_route_id, |
118 int callback_id); | 118 int callback_id); |
| 119 void OnGetAppInstallState(const GURL& requestor_url, |
| 120 int return_route_id, |
| 121 int callback_id); |
119 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 122 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
120 | 123 |
121 // App extensions related methods: | 124 // App extensions related methods: |
122 | 125 |
123 // Resets app_icon_ and if |extension| is non-null creates a new | 126 // Resets app_icon_ and if |extension| is non-null creates a new |
124 // ImageLoadingTracker to load the extension's image. | 127 // ImageLoadingTracker to load the extension's image. |
125 void UpdateExtensionAppIcon(const Extension* extension); | 128 void UpdateExtensionAppIcon(const Extension* extension); |
126 | 129 |
127 const Extension* GetExtension(const std::string& extension_app_id); | 130 const Extension* GetExtension(const std::string& extension_app_id); |
128 | 131 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 168 |
166 // Cached web app info data. | 169 // Cached web app info data. |
167 WebApplicationInfo web_app_info_; | 170 WebApplicationInfo web_app_info_; |
168 | 171 |
169 TabContentsWrapper* wrapper_; | 172 TabContentsWrapper* wrapper_; |
170 | 173 |
171 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); | 174 DISALLOW_COPY_AND_ASSIGN(ExtensionTabHelper); |
172 }; | 175 }; |
173 | 176 |
174 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ | 177 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TAB_HELPER_H_ |
OLD | NEW |