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

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 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Message handlers. 162 // Message handlers.
163 void OnDidGetWebApplicationInfo(const WebApplicationInfo& info); 163 void OnDidGetWebApplicationInfo(const WebApplicationInfo& info);
164 void OnInlineWebstoreInstall(int install_id, 164 void OnInlineWebstoreInstall(int install_id,
165 int return_route_id, 165 int return_route_id,
166 const std::string& webstore_item_id, 166 const std::string& webstore_item_id,
167 const GURL& requestor_url, 167 const GURL& requestor_url,
168 int listeners_mask); 168 int listeners_mask);
169 void OnGetAppInstallState(const GURL& requestor_url, 169 void OnGetAppInstallState(const GURL& requestor_url,
170 int return_route_id, 170 int return_route_id,
171 int callback_id); 171 int callback_id);
172 void OnRequest(const ExtensionHostMsg_Request_Params& params);
173 void OnContentScriptsExecuting( 172 void OnContentScriptsExecuting(
174 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids, 173 const ScriptExecutionObserver::ExecutingScriptsMap& extension_ids,
175 const GURL& on_url); 174 const GURL& on_url);
176 void OnDetailedConsoleMessageAdded(const base::string16& message, 175 void OnDetailedConsoleMessageAdded(const base::string16& message,
177 const base::string16& source, 176 const base::string16& source,
178 const StackTrace& stack_trace, 177 const StackTrace& stack_trace,
179 int32 severity_level); 178 int32 severity_level);
180 179
181 // App extensions related methods: 180 // App extensions related methods:
182 181
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 base::ObserverList<ScriptExecutionObserver> script_execution_observers_; 219 base::ObserverList<ScriptExecutionObserver> script_execution_observers_;
221 220
222 // If non-null this tab is an app tab and this is the extension the tab was 221 // If non-null this tab is an app tab and this is the extension the tab was
223 // created for. 222 // created for.
224 const Extension* extension_app_; 223 const Extension* extension_app_;
225 224
226 // Icon for extension_app_ (if non-null) or a manually-set icon for 225 // Icon for extension_app_ (if non-null) or a manually-set icon for
227 // non-extension apps. 226 // non-extension apps.
228 SkBitmap extension_app_icon_; 227 SkBitmap extension_app_icon_;
229 228
230 // Process any extension messages coming from the tab.
231 extensions::ExtensionFunctionDispatcher extension_function_dispatcher_;
232
233 // Cached web app info data. 229 // Cached web app info data.
234 WebApplicationInfo web_app_info_; 230 WebApplicationInfo web_app_info_;
235 231
236 // Which deferred action to perform when OnDidGetApplicationInfo is notified 232 // Which deferred action to perform when OnDidGetApplicationInfo is notified
237 // from a WebContents. 233 // from a WebContents.
238 WebAppAction pending_web_app_action_; 234 WebAppAction pending_web_app_action_;
239 235
240 // Which navigation entry was active when the GetApplicationInfo request was 236 // Which navigation entry was active when the GetApplicationInfo request was
241 // sent, for verification when the reply returns. 237 // sent, for verification when the reply returns.
242 int last_committed_nav_entry_unique_id_; 238 int last_committed_nav_entry_unique_id_;
(...skipping 24 matching lines...) Expand all
267 263
268 // Generic weak ptr factory for posting callbacks. 264 // Generic weak ptr factory for posting callbacks.
269 base::WeakPtrFactory<TabHelper> weak_ptr_factory_; 265 base::WeakPtrFactory<TabHelper> weak_ptr_factory_;
270 266
271 DISALLOW_COPY_AND_ASSIGN(TabHelper); 267 DISALLOW_COPY_AND_ASSIGN(TabHelper);
272 }; 268 };
273 269
274 } // namespace extensions 270 } // namespace extensions
275 271
276 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 272 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_test_utils.cc ('k') | chrome/browser/extensions/tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698