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

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: Sync Created 7 years, 11 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
vabr (Chromium) 2013/01/23 12:32:56 Lint: add #include for vector<> and string.
Jeffrey Yasskin 2013/01/23 22:13:17 Done.
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"
11 #include "chrome/common/extensions/extension.h" 11 #include "chrome/common/extensions/extension.h"
12 #include "chrome/common/extensions/permissions/bluetooth_device_permission_data. h" 12 #include "chrome/common/extensions/permissions/bluetooth_device_permission_data. h"
13 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h " 13 #include "chrome/common/extensions/permissions/media_galleries_permission_data.h "
14 #include "chrome/common/extensions/permissions/permission_set.h" 14 #include "chrome/common/extensions/permissions/permission_set.h"
15 #include "chrome/common/extensions/permissions/socket_permission_data.h" 15 #include "chrome/common/extensions/permissions/socket_permission_data.h"
16 #include "chrome/common/extensions/permissions/usb_device_permission_data.h" 16 #include "chrome/common/extensions/permissions/usb_device_permission_data.h"
17 #include "chrome/common/view_type.h" 17 #include "chrome/common/view_type.h"
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 int /* channel */) 387 int /* channel */)
388 388
389 // Adds a logging message to the renderer's root frame DevTools console. 389 // Adds a logging message to the renderer's root frame DevTools console.
390 IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole, 390 IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole,
391 content::ConsoleMessageLevel /* level */, 391 content::ConsoleMessageLevel /* level */,
392 std::string /* message */) 392 std::string /* message */)
393 393
394 // Notify the renderer that its window has closed. 394 // Notify the renderer that its window has closed.
395 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) 395 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed)
396 396
397 // Notify the renderer that an extension wants notifications when certain
398 // searches match the active page. This message replaces the old set of
399 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from
400 // each tab to keep the browser updated about changes.
401 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages,
402 std::vector<std::string> /* CSS selectors */)
403
397 // Messages sent from the renderer to the browser. 404 // Messages sent from the renderer to the browser.
398 405
399 // A renderer sends this message when an extension process starts an API 406 // A renderer sends this message when an extension process starts an API
400 // request. The browser will always respond with a ExtensionMsg_Response. 407 // request. The browser will always respond with a ExtensionMsg_Response.
401 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, 408 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request,
402 ExtensionHostMsg_Request_Params) 409 ExtensionHostMsg_Request_Params)
403 410
404 // A renderer sends this message when an extension process starts an API 411 // A renderer sends this message when an extension process starts an API
405 // request. The browser will always respond with a ExtensionMsg_Response. 412 // request. The browser will always respond with a ExtensionMsg_Response.
406 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, 413 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 // browser process. 576 // browser process.
570 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, 577 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
571 int /* unique_id */) 578 int /* unique_id */)
572 579
573 // Resumes resource requests for a newly created app window. 580 // Resumes resource requests for a newly created app window.
574 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) 581 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
575 582
576 // Sent by the renderer when the draggable regions are updated. 583 // Sent by the renderer when the draggable regions are updated.
577 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, 584 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
578 std::vector<extensions::DraggableRegion> /* regions */) 585 std::vector<extensions::DraggableRegion> /* regions */)
586
587 // Notifies the browser process that a tab has started or stopped matching
588 // certain conditions. This message is sent in response to several events:
589 //
590 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
591 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
592 // Currently this only fires for the main frame.
593 // * Something changed on an existing frame causing the set of matching searches
594 // to change.
595 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
596 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698