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

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

Issue 10703111: Cleanup: make ExtensionRequestSender manage its IPC responses directly, rather (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert sceopd_observer change Created 8 years, 5 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) 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 // 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 } // namespace IPC 170 } // namespace IPC
171 171
172 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_ 172 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_MESSAGES_H_
173 173
174 // Messages sent from the browser to the renderer. 174 // Messages sent from the browser to the renderer.
175 175
176 // The browser sends this message in response to all extension api calls. The 176 // The browser sends this message in response to all extension api calls. The
177 // response data (if any) is one of the base::Value subclasses, wrapped as the 177 // response data (if any) is one of the base::Value subclasses, wrapped as the
178 // first element in a ListValue. 178 // first element in a ListValue.
179 IPC_MESSAGE_ROUTED4(ExtensionMsg_Response, 179 IPC_MESSAGE_CONTROL4(ExtensionMsg_Response,
180 int /* request_id */, 180 int /* request_id */,
181 bool /* success */, 181 bool /* success */,
182 ListValue /* response wrapper (see comment above) */, 182 ListValue /* response wrapper (see comment above) */,
183 std::string /* error */) 183 std::string /* error */)
184 184
185 // This message is optionally routed. If used as a control message, it 185 // This message is optionally routed. If used as a control message, it
186 // will call a javascript function in every registered context in the 186 // will call a javascript function in every registered context in the
187 // target process. If routed, it will be restricted to the contexts that 187 // target process. If routed, it will be restricted to the contexts that
188 // are part of the target RenderView. 188 // are part of the target RenderView.
189 // If |extension_id| is non-empty, the function will be invoked only in 189 // If |extension_id| is non-empty, the function will be invoked only in
190 // contexts owned by the extension. |args| is a list of primitive Value types 190 // contexts owned by the extension. |args| is a list of primitive Value types
191 // that are passed to the function. 191 // that are passed to the function.
192 IPC_MESSAGE_ROUTED5(ExtensionMsg_MessageInvoke, 192 IPC_MESSAGE_ROUTED5(ExtensionMsg_MessageInvoke,
193 std::string /* extension_id */, 193 std::string /* extension_id */,
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // alive. 490 // alive.
491 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 491 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
492 492
493 // Fetches a globally unique ID (for the lifetime of the browser) from the 493 // Fetches a globally unique ID (for the lifetime of the browser) from the
494 // browser process. 494 // browser process.
495 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 495 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
496 int /* unique_id */) 496 int /* unique_id */)
497 497
498 // Resumes resource requests for a newly created app window. 498 // Resumes resource requests for a newly created app window.
499 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 499 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/renderer/extensions/extension_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698