OLD | NEW |
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 int /* channel */) | 382 int /* channel */) |
383 | 383 |
384 // Adds a logging message to the renderer's root frame DevTools console. | 384 // Adds a logging message to the renderer's root frame DevTools console. |
385 IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole, | 385 IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole, |
386 content::ConsoleMessageLevel /* level */, | 386 content::ConsoleMessageLevel /* level */, |
387 std::string /* message */) | 387 std::string /* message */) |
388 | 388 |
389 // Notify the renderer that its window has closed. | 389 // Notify the renderer that its window has closed. |
390 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) | 390 IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed) |
391 | 391 |
| 392 // Notify the renderer that an extension wants notifications when certain |
| 393 // searches match the active page. This message replaces the old set of |
| 394 // searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from |
| 395 // each tab to keep the browser updated about changes. |
| 396 IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages, |
| 397 std::vector<std::string> /* CSS selectors */) |
| 398 |
392 // Messages sent from the renderer to the browser. | 399 // Messages sent from the renderer to the browser. |
393 | 400 |
394 // A renderer sends this message when an extension process starts an API | 401 // A renderer sends this message when an extension process starts an API |
395 // request. The browser will always respond with a ExtensionMsg_Response. | 402 // request. The browser will always respond with a ExtensionMsg_Response. |
396 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, | 403 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_Request, |
397 ExtensionHostMsg_Request_Params) | 404 ExtensionHostMsg_Request_Params) |
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_CONTROL2(ExtensionHostMsg_RequestForIOThread, | 408 IPC_MESSAGE_CONTROL2(ExtensionHostMsg_RequestForIOThread, |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 // browser process. | 571 // browser process. |
565 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, | 572 IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID, |
566 int /* unique_id */) | 573 int /* unique_id */) |
567 | 574 |
568 // Resumes resource requests for a newly created app window. | 575 // Resumes resource requests for a newly created app window. |
569 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) | 576 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */) |
570 | 577 |
571 // Sent by the renderer when the draggable regions are updated. | 578 // Sent by the renderer when the draggable regions are updated. |
572 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, | 579 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions, |
573 std::vector<extensions::DraggableRegion> /* regions */) | 580 std::vector<extensions::DraggableRegion> /* regions */) |
| 581 |
| 582 // Notifies the browser process that a tab has started or stopped matching |
| 583 // certain conditions. This message is sent in response to several events: |
| 584 // |
| 585 // * ExtensionMsg_WatchPages was received, updating the set of conditions. |
| 586 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. |
| 587 // Currently this only fires for the main frame. |
| 588 // * Something changed on an existing frame causing the set of matching searches |
| 589 // to change. |
| 590 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
| 591 std::vector<std::string> /* Matching CSS selectors */) |
OLD | NEW |