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

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

Issue 11547033: Implement declarativeContent API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/draggable_region.h" 10 #include "chrome/common/extensions/draggable_region.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 int /* channel */) 365 int /* channel */)
366 366
367 // Adds a logging message to the renderer's root frame DevTools console. 367 // Adds a logging message to the renderer's root frame DevTools console.
368 IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole, 368 IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole,
369 content::ConsoleMessageLevel /* level */, 369 content::ConsoleMessageLevel /* level */,
370 std::string /* message */) 370 std::string /* message */)
371 371
372 // Notify the renderer that its window has closed. 372 // Notify the renderer that its window has closed.
373 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) 373 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed)
374 374
375 // Notify the renderer that an extension wants notifications when certain
376 // searches match the active page. This message replaces the old set of
377 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from
378 // each tab to keep the browser updated about changes.
379 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages,
380 std::vector<std::string> /* CSS selectors */)
381
375 // Messages sent from the renderer to the browser. 382 // Messages sent from the renderer to the browser.
376 383
377 // A renderer sends this message when an extension process starts an API 384 // A renderer sends this message when an extension process starts an API
378 // request. The browser will always respond with a ExtensionMsg_Response. 385 // request. The browser will always respond with a ExtensionMsg_Response.
379 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, 386 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request,
380 ExtensionHostMsg_Request_Params) 387 ExtensionHostMsg_Request_Params)
381 388
382 // A renderer sends this message when an extension process starts an API 389 // A renderer sends this message when an extension process starts an API
383 // request. The browser will always respond with a ExtensionMsg_Response. 390 // request. The browser will always respond with a ExtensionMsg_Response.
384 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, 391 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // browser process. 554 // browser process.
548 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 555 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
549 int /* unique_id */) 556 int /* unique_id */)
550 557
551 // Resumes resource requests for a newly created app window. 558 // Resumes resource requests for a newly created app window.
552 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 559 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
553 560
554 // Sent by the renderer when the draggable regions are updated. 561 // Sent by the renderer when the draggable regions are updated.
555 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, 562 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
556 std::vector<extensions::DraggableRegion> /* regions */) 563 std::vector<extensions::DraggableRegion> /* regions */)
564
565 // Notifies the browser process that a tab has started or stopped matching
566 // certain conditions. This message is sent in response to several events:
567 //
568 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
569 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
570 // Currently this only fires for the main frame.
571 // * Something changed on an existing frame causing the set of matching searches
572 // to change.
573 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
574 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698