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

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

Issue 10514013: Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, reland 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
370 // Notify the browser that an event has finished being dispatched. 386 // Notify the browser that an event has finished being dispatched.
371 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck) 387 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_EventAck)
372 388
373 // Open a channel to all listening contexts owned by the extension with 389 // Open a channel to all listening contexts owned by the extension with
374 // the given ID. This always returns a valid port ID which can be used for 390 // the given ID. This always returns a valid port ID which can be used for
375 // sending messages. If an error occurred, the opener will be notified 391 // sending messages. If an error occurred, the opener will be notified
376 // asynchronously. 392 // asynchronously.
377 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension, 393 IPC_SYNC_MESSAGE_CONTROL4_1(ExtensionHostMsg_OpenChannelToExtension,
378 int /* routing_id */, 394 int /* routing_id */,
379 std::string /* source_extension_id */, 395 std::string /* source_extension_id */,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // alive. 490 // alive.
475 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount) 491 IPC_MESSAGE_ROUTED0(ExtensionHostMsg_DecrementLazyKeepaliveCount)
476 492
477 // Fetches a globally unique ID (for the lifetime of the browser) from the 493 // Fetches a globally unique ID (for the lifetime of the browser) from the
478 // browser process. 494 // browser process.
479 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 495 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
480 int /* unique_id */) 496 int /* unique_id */)
481 497
482 // Resumes resource requests for a newly created app window. 498 // Resumes resource requests for a newly created app window.
483 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 499 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_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