| Index: chrome/common/extensions/extension_messages.h
|
| diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h
|
| index 1a07eef984a541091eb0517e0aa23f67eb8b1735..f403b0b18da50a658c9d7d9a8979617ad2ff721a 100644
|
| --- a/chrome/common/extensions/extension_messages.h
|
| +++ b/chrome/common/extensions/extension_messages.h
|
| @@ -372,6 +372,13 @@ IPC_MESSAGE_ROUTED2(ExtensionMsg_AddMessageToConsole,
|
| // Notify the renderer that its window has closed.
|
| IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed)
|
|
|
| +// Notify the renderer that an extension wants notifications when certain
|
| +// searches match the active page. This message replaces the old set of
|
| +// searches, and triggers ExtensionHostMsg_OnWatchedPageChange messages from
|
| +// each tab to keep the browser updated about changes.
|
| +IPC_MESSAGE_CONTROL1(ExtensionMsg_WatchPages,
|
| + std::vector<std::string> /* CSS selectors */)
|
| +
|
| // Messages sent from the renderer to the browser.
|
|
|
| // A renderer sends this message when an extension process starts an API
|
| @@ -554,3 +561,14 @@ IPC_MESSAGE_CONTROL1(ExtensionHostMsg_ResumeRequests, int /* route_id */)
|
| // Sent by the renderer when the draggable regions are updated.
|
| IPC_MESSAGE_ROUTED1(ExtensionHostMsg_UpdateDraggableRegions,
|
| std::vector<extensions::DraggableRegion> /* regions */)
|
| +
|
| +// Notifies the browser process that a tab has started or stopped matching
|
| +// certain conditions. This message is sent in response to several events:
|
| +//
|
| +// * ExtensionMsg_WatchPages was received, updating the set of conditions.
|
| +// * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
|
| +// Currently this only fires for the main frame.
|
| +// * Something changed on an existing frame causing the set of matching searches
|
| +// to change.
|
| +IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
|
| + std::vector<std::string> /* Matching CSS selectors */)
|
|
|