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

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

Issue 10174001: Add an API for hosted apps to check their install and running states. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 int32 /* install id */, 272 int32 /* install id */,
273 bool /* whether the install was successful */, 273 bool /* whether the install was successful */,
274 std::string /* error */) 274 std::string /* error */)
275 275
276 // Response to the renderer for ExtensionHostMsg_GetAppNotifyChannel. 276 // Response to the renderer for ExtensionHostMsg_GetAppNotifyChannel.
277 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, 277 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse,
278 std::string /* channel_id */, 278 std::string /* channel_id */,
279 std::string /* error */, 279 std::string /* error */,
280 int32 /* callback_id */) 280 int32 /* callback_id */)
281 281
282 // Response to the renderer for ExtensionHostMsg_GetAppInstallState.
283 IPC_MESSAGE_ROUTED2(ExtensionMsg_GetAppInstallStateResponse,
284 std::string /* state */,
285 int32 /* callback_id */)
286
282 // Dispatch the Port.onConnect event for message channels. 287 // Dispatch the Port.onConnect event for message channels.
283 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect, 288 IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect,
284 int /* target_port_id */, 289 int /* target_port_id */,
285 std::string /* channel_name */, 290 std::string /* channel_name */,
286 std::string /* tab_json */, 291 std::string /* tab_json */,
287 std::string /* source_extension_id */, 292 std::string /* source_extension_id */,
288 std::string /* target_extension_id */) 293 std::string /* target_extension_id */)
289 294
290 // Deliver a message sent with ExtensionHostMsg_PostMessage. 295 // Deliver a message sent with ExtensionHostMsg_PostMessage.
291 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, 296 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 GURL /* requestor URL */) 399 GURL /* requestor URL */)
395 400
396 // Sent by the renderer when an App is requesting permission to send server 401 // Sent by the renderer when an App is requesting permission to send server
397 // pushed notifications. 402 // pushed notifications.
398 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_GetAppNotifyChannel, 403 IPC_MESSAGE_ROUTED4(ExtensionHostMsg_GetAppNotifyChannel,
399 GURL /* requestor_url */, 404 GURL /* requestor_url */,
400 std::string /* client_id */, 405 std::string /* client_id */,
401 int32 /* return_route_id */, 406 int32 /* return_route_id */,
402 int32 /* callback_id */) 407 int32 /* callback_id */)
403 408
409 // Sent by the renderer when a web page is checking if its app is installed.
410 IPC_MESSAGE_ROUTED3(ExtensionHostMsg_GetAppInstallState,
411 GURL /* requestor_url */,
412 int32 /* return_route_id */,
413 int32 /* callback_id */)
414
404 // Optional Ack message sent to the browser to notify that the response to a 415 // Optional Ack message sent to the browser to notify that the response to a
405 // function has been processed. 416 // function has been processed.
406 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck, 417 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_ResponseAck,
407 int /* request_id */) 418 int /* request_id */)
408 419
409 // Response to ExtensionMsg_ShouldUnload. 420 // Response to ExtensionMsg_ShouldUnload.
410 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_ShouldUnloadAck, 421 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_ShouldUnloadAck,
411 std::string /* extension_id */, 422 std::string /* extension_id */,
412 int /* sequence_id */) 423 int /* sequence_id */)
413 424
414 // Response to ExtensionMsg_Unload, after we dispatch the unload event. 425 // Response to ExtensionMsg_Unload, after we dispatch the unload event.
415 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_UnloadAck, 426 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_UnloadAck,
416 std::string /* extension_id */) 427 std::string /* extension_id */)
417 428
418 // Informs the browser to increment the keepalive count for the lazy background 429 // Informs the browser to increment the keepalive count for the lazy background
419 // page, keeping it alive. 430 // page, keeping it alive.
420 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount) 431 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount)
421 432
422 // Informs the browser there is one less thing keeping the lazy background page 433 // Informs the browser there is one less thing keeping the lazy background page
423 // alive. 434 // alive.
424 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 435 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
425 436
426 // Fetches a globally unique ID (for the lifetime of the browser) from the 437 // Fetches a globally unique ID (for the lifetime of the browser) from the
427 // browser process. 438 // browser process.
428 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 439 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
429 int /* unique_id */) 440 int /* unique_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698