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

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

Issue 10114015: Fix bug where transient pages would miss events dispatched while it was (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yoyo 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 std::string /* extension_id */, 324 std::string /* extension_id */,
325 std::string /* name */) 325 std::string /* name */)
326 326
327 // Notify the browser that the given extension is no longer interested in 327 // Notify the browser that the given extension is no longer interested in
328 // receiving the given event from a lazy background page. 328 // receiving the given event from a lazy background page.
329 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, 329 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener,
330 std::string /* extension_id */, 330 std::string /* extension_id */,
331 std::string /* name */) 331 std::string /* name */)
332 332
333 // Notify the browser that an event has finished being dispatched. 333 // Notify the browser that an event has finished being dispatched.
334 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ExtensionEventAck, 334 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck)
335 std::string /* extension_id */)
336
337 335
338 // Open a channel to all listening contexts owned by the extension with 336 // Open a channel to all listening contexts owned by the extension with
339 // the given ID. This always returns a valid port ID which can be used for 337 // the given ID. This always returns a valid port ID which can be used for
340 // sending messages. If an error occurred, the opener will be notified 338 // sending messages. If an error occurred, the opener will be notified
341 // asynchronously. 339 // asynchronously.
342 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, 340 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension,
343 int /* routing_id */, 341 int /* routing_id */,
344 std::string /* source_extension_id */, 342 std::string /* source_extension_id */,
345 std::string /* target_extension_id */, 343 std::string /* target_extension_id */,
346 std::string /* channel_name */, 344 std::string /* channel_name */,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_ShouldUnloadAck, 408 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_ShouldUnloadAck,
411 std::string /* extension_id */, 409 std::string /* extension_id */,
412 int /* sequence_id */) 410 int /* sequence_id */)
413 411
414 // Response to ExtensionMsg_Unload, after we dispatch the unload event. 412 // Response to ExtensionMsg_Unload, after we dispatch the unload event.
415 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_UnloadAck, 413 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_UnloadAck,
416 std::string /* extension_id */) 414 std::string /* extension_id */)
417 415
418 // Informs the browser to increment the keepalive count for the lazy background 416 // Informs the browser to increment the keepalive count for the lazy background
419 // page, keeping it alive. 417 // page, keeping it alive.
420 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_IncrementLazyKeepaliveCount, 418 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount)
421 std::string /* extension_id */)
422 419
423 // Informs the browser there is one less thing keeping the lazy background page 420 // Informs the browser there is one less thing keeping the lazy background page
424 // alive. 421 // alive.
425 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_DecrementLazyKeepaliveCount, 422 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
426 std::string /* extension_id */)
427 423
428 // Fetches a globally unique ID (for the lifetime of the browser) from the 424 // Fetches a globally unique ID (for the lifetime of the browser) from the
429 // browser process. 425 // browser process.
430 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 426 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
431 int /* unique_id */) 427 int /* unique_id */)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/renderer/extensions/extension_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698