Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/extensions/tab_helper.h

Issue 1169223002: [Extensions] Clean up the handling of ExtensionHostMsg_Request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Message handlers. 160 // Message handlers.
161 void OnDidGetWebApplicationInfo(const WebApplicationInfo& info); 161 void OnDidGetWebApplicationInfo(const WebApplicationInfo& info);
162 void OnInlineWebstoreInstall(int install_id, 162 void OnInlineWebstoreInstall(int install_id,
163 int return_route_id, 163 int return_route_id,
164 const std::string& webstore_item_id, 164 const std::string& webstore_item_id,
165 const GURL& requestor_url, 165 const GURL& requestor_url,
166 int listeners_mask); 166 int listeners_mask);
167 void OnGetAppInstallState(const GURL& requestor_url, 167 void OnGetAppInstallState(const GURL& requestor_url,
168 int return_route_id, 168 int return_route_id,
169 int callback_id); 169 int callback_id);
170 void OnRequest(const ExtensionHostMsg_Request_Params& params);
171 void OnContentScriptsExecuting( 170 void OnContentScriptsExecuting(
172 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids, 171 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids,
173 const GURL& on_url); 172 const GURL& on_url);
174 void OnWatchedPageChange(const std::vector<std::string>& css_selectors); 173 void OnWatchedPageChange(const std::vector<std::string>& css_selectors);
175 void OnDetailedConsoleMessageAdded(const base::string16& message, 174 void OnDetailedConsoleMessageAdded(const base::string16& message,
176 const base::string16& source, 175 const base::string16& source,
177 const StackTrace& stack_trace, 176 const StackTrace& stack_trace,
178 int32 severity_level); 177 int32 severity_level);
179 178
180 // App extensions related methods: 179 // App extensions related methods:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 base::ObserverList<ScriptExecutionObserver> script_execution_observers_; 218 base::ObserverList<ScriptExecutionObserver> script_execution_observers_;
220 219
221 // If non-null this tab is an app tab and this is the extension the tab was 220 // If non-null this tab is an app tab and this is the extension the tab was
222 // created for. 221 // created for.
223 const Extension* extension_app_; 222 const Extension* extension_app_;
224 223
225 // Icon for extension_app_ (if non-null) or a manually-set icon for 224 // Icon for extension_app_ (if non-null) or a manually-set icon for
226 // non-extension apps. 225 // non-extension apps.
227 SkBitmap extension_app_icon_; 226 SkBitmap extension_app_icon_;
228 227
229 // Process any extension messages coming from the tab.
230 extensions::ExtensionFunctionDispatcher extension_function_dispatcher_;
231
232 // Cached web app info data. 228 // Cached web app info data.
233 WebApplicationInfo web_app_info_; 229 WebApplicationInfo web_app_info_;
234 230
235 // Which deferred action to perform when OnDidGetApplicationInfo is notified 231 // Which deferred action to perform when OnDidGetApplicationInfo is notified
236 // from a WebContents. 232 // from a WebContents.
237 WebAppAction pending_web_app_action_; 233 WebAppAction pending_web_app_action_;
238 234
239 // Which navigation entry was active when the GetApplicationInfo request was 235 // Which navigation entry was active when the GetApplicationInfo request was
240 // sent, for verification when the reply returns. 236 // sent, for verification when the reply returns.
241 int last_committed_nav_entry_unique_id_; 237 int last_committed_nav_entry_unique_id_;
(...skipping 26 matching lines...) Expand all
268 264
269 // Generic weak ptr factory for posting callbacks. 265 // Generic weak ptr factory for posting callbacks.
270 base::WeakPtrFactory<TabHelper> weak_ptr_factory_; 266 base::WeakPtrFactory<TabHelper> weak_ptr_factory_;
271 267
272 DISALLOW_COPY_AND_ASSIGN(TabHelper); 268 DISALLOW_COPY_AND_ASSIGN(TabHelper);
273 }; 269 };
274 270
275 } // namespace extensions 271 } // namespace extensions
276 272
277 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 273 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698