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

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

Issue 8343079: Don't close background pages if there is a pending response (callback). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 1 month 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // event. 266 // event.
267 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveListener, 267 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveListener,
268 std::string /* extension_id */, 268 std::string /* extension_id */,
269 std::string /* name */) 269 std::string /* name */)
270 270
271 // Notify the browser that the extension is idle so it's lazy background page 271 // Notify the browser that the extension is idle so it's lazy background page
272 // can be closed. 272 // can be closed.
273 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionIdle, 273 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionIdle,
274 std::string /* extension_id */) 274 std::string /* extension_id */)
275 275
276 // Notify the browser that an event has finished being dispatched.
277 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionEventAck,
278 std::string /* extension_id */)
279
280
276 // Open a channel to all listening contexts owned by the extension with 281 // Open a channel to all listening contexts owned by the extension with
277 // the given ID. This always returns a valid port ID which can be used for 282 // the given ID. This always returns a valid port ID which can be used for
278 // sending messages. If an error occurred, the opener will be notified 283 // sending messages. If an error occurred, the opener will be notified
279 // asynchronously. 284 // asynchronously.
280 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, 285 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension,
281 int /* routing_id */, 286 int /* routing_id */,
282 std::string /* source_extension_id */, 287 std::string /* source_extension_id */,
283 std::string /* target_extension_id */, 288 std::string /* target_extension_id */,
284 std::string /* channel_name */, 289 std::string /* channel_name */,
285 int /* port_id */) 290 int /* port_id */)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // Response to the renderer for the above message. 351 // Response to the renderer for the above message.
347 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse, 352 IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse,
348 std::string /* channel_id */, 353 std::string /* channel_id */,
349 std::string /* error */, 354 std::string /* error */,
350 int32 /* callback_id */) 355 int32 /* callback_id */)
351 356
352 // Deliver a message sent with ExtensionHostMsg_PostMessage. 357 // Deliver a message sent with ExtensionHostMsg_PostMessage.
353 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage, 358 IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage,
354 int /* target_port_id */, 359 int /* target_port_id */,
355 std::string /* message */) 360 std::string /* message */)
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