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

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

Issue 10310182: Hack to restrict runtime API to dev channel rather than experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: docs Created 8 years, 7 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 std::string /* channel_name */, 290 std::string /* channel_name */,
291 std::string /* tab_json */, 291 std::string /* tab_json */,
292 std::string /* source_extension_id */, 292 std::string /* source_extension_id */,
293 std::string /* target_extension_id */) 293 std::string /* target_extension_id */)
294 294
295 // Deliver a message sent with ExtensionHostMsg_PostMessage. 295 // Deliver a message sent with ExtensionHostMsg_PostMessage.
296 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, 296 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage,
297 int /* target_port_id */, 297 int /* target_port_id */,
298 std::string /* message */) 298 std::string /* message */)
299 299
300 // Dispatch the Port.onDisconnect event for message channels.
300 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect, 301 IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect,
301 int /* port_id */, 302 int /* port_id */,
302 bool /* connection_error */) 303 bool /* connection_error */)
303 304
305 // Informs the renderer what channel (dev, beta, stable, etc) is running.
306 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel,
307 int /* channel */)
308
304 // Messages sent from the renderer to the browser. 309 // Messages sent from the renderer to the browser.
305 310
306 // A renderer sends this message when an extension process starts an API 311 // A renderer sends this message when an extension process starts an API
307 // request. The browser will always respond with a ExtensionMsg_Response. 312 // request. The browser will always respond with a ExtensionMsg_Response.
308 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, 313 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request,
309 ExtensionHostMsg_Request_Params) 314 ExtensionHostMsg_Request_Params)
310 315
311 // A renderer sends this message when an extension process starts an API 316 // A renderer sends this message when an extension process starts an API
312 // request. The browser will always respond with a ExtensionMsg_Response. 317 // request. The browser will always respond with a ExtensionMsg_Response.
313 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, 318 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount) 436 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount)
432 437
433 // Informs the browser there is one less thing keeping the lazy background page 438 // Informs the browser there is one less thing keeping the lazy background page
434 // alive. 439 // alive.
435 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 440 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
436 441
437 // Fetches a globally unique ID (for the lifetime of the browser) from the 442 // Fetches a globally unique ID (for the lifetime of the browser) from the
438 // browser process. 443 // browser process.
439 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 444 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
440 int /* unique_id */) 445 int /* unique_id */)
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | chrome/common/extensions/extension_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698