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

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

Issue 10661038: Revert 143896 - Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener, 360 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_AddLazyListener,
361 std::string /* extension_id */, 361 std::string /* extension_id */,
362 std::string /* name */) 362 std::string /* name */)
363 363
364 // Notify the browser that the given extension is no longer interested in 364 // Notify the browser that the given extension is no longer interested in
365 // receiving the given event from a lazy background page. 365 // receiving the given event from a lazy background page.
366 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener, 366 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RemoveLazyListener,
367 std::string /* extension_id */, 367 std::string /* extension_id */,
368 std::string /* name */) 368 std::string /* name */)
369 369
370 // Notify the browser that the given extension added a listener to instances of
371 // the named event that satisfy the filter.
372 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AddFilteredListener,
373 std::string /* extension_id */,
374 std::string /* name */,
375 DictionaryValue /* filter */,
376 bool /* lazy */)
377
378 // Notify the browser that the given extension is no longer interested in
379 // instances of the named event that satisfy the filter.
380 IPC_MESSAGE_CONTROL4(ExtensionHostMsg_RemoveFilteredListener,
381 std::string /* extension_id */,
382 std::string /* name */,
383 DictionaryValue /* filter */,
384 bool /* lazy */)
385
386 // Notify the browser that an event has finished being dispatched. 370 // Notify the browser that an event has finished being dispatched.
387 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck) 371 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck)
388 372
389 // Open a channel to all listening contexts owned by the extension with 373 // Open a channel to all listening contexts owned by the extension with
390 // the given ID. This always returns a valid port ID which can be used for 374 // the given ID. This always returns a valid port ID which can be used for
391 // sending messages. If an error occurred, the opener will be notified 375 // sending messages. If an error occurred, the opener will be notified
392 // asynchronously. 376 // asynchronously.
393 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, 377 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension,
394 int /* routing_id */, 378 int /* routing_id */,
395 std::string /* source_extension_id */, 379 std::string /* source_extension_id */,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount) 471 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_IncrementLazyKeepaliveCount)
488 472
489 // Informs the browser there is one less thing keeping the lazy background page 473 // Informs the browser there is one less thing keeping the lazy background page
490 // alive. 474 // alive.
491 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 475 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
492 476
493 // Fetches a globally unique ID (for the lifetime of the browser) from the 477 // Fetches a globally unique ID (for the lifetime of the browser) from the
494 // browser process. 478 // browser process.
495 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 479 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
496 int /* unique_id */) 480 int /* unique_id */)
OLDNEW
« no previous file with comments | « chrome/common/extensions/event_filtering_info.cc ('k') | chrome/common/extensions/value_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698