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

Side by Side Diff: chrome/common/extensions/extension_messages.h

Issue 7024056: Handle extension webrequest API on the IO thread. This speeds up blocking event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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 | Annotate | Revision Log
OLDNEW
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 // IPC messages for extensions. 5 // IPC messages for extensions.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType, 211 IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType,
212 ViewType::Type /* view_type */) 212 ViewType::Type /* view_type */)
213 213
214 // Messages sent from the renderer to the browser. 214 // Messages sent from the renderer to the browser.
215 215
216 // A renderer sends this message when an extension process starts an API 216 // A renderer sends this message when an extension process starts an API
217 // request. The browser will always respond with a ExtensionMsg_Response. 217 // request. The browser will always respond with a ExtensionMsg_Response.
218 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, 218 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request,
219 ExtensionHostMsg_Request_Params) 219 ExtensionHostMsg_Request_Params)
220 220
221 // A renderer sends this message when an extension process starts an API
222 // request. The browser will always respond with a ExtensionMsg_Response.
223 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread,
224 int /* routing_id */,
225 ExtensionHostMsg_Request_Params)
226
221 // Notify the browser that the given extension added a listener to an event. 227 // Notify the browser that the given extension added a listener to an event.
222 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddListener, 228 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddListener,
223 std::string /* extension_id */, 229 std::string /* extension_id */,
224 std::string /* name */) 230 std::string /* name */)
225 231
226 // Notify the browser that the given extension removed a listener from an 232 // Notify the browser that the given extension removed a listener from an
227 // event. 233 // event.
228 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveListener, 234 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveListener,
229 std::string /* extension_id */, 235 std::string /* extension_id */,
230 std::string /* name */) 236 std::string /* name */)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 bool /* whether the script ran successfully */, 277 bool /* whether the script ran successfully */,
272 std::string /* error message */) 278 std::string /* error message */)
273 279
274 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo, 280 IPC_MESSAGE_ROUTED2(ExtensionHostMsg_DidGetApplicationInfo,
275 int32 /* page_id */, 281 int32 /* page_id */,
276 WebApplicationInfo) 282 WebApplicationInfo)
277 283
278 // Sent by the renderer to implement chrome.app.installApplication(). 284 // Sent by the renderer to implement chrome.app.installApplication().
279 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication, 285 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_InstallApplication,
280 WebApplicationInfo) 286 WebApplicationInfo)
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view_browsertest.cc ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698