Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 374 // extension ids | 374 // extension ids |
| 375 extensions::ExtensionsClient::ScriptingWhitelist) | 375 extensions::ExtensionsClient::ScriptingWhitelist) |
| 376 | 376 |
| 377 // Notification that renderer should run some JavaScript code. | 377 // Notification that renderer should run some JavaScript code. |
| 378 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, | 378 IPC_MESSAGE_ROUTED1(ExtensionMsg_ExecuteCode, |
| 379 ExtensionMsg_ExecuteCode_Params) | 379 ExtensionMsg_ExecuteCode_Params) |
| 380 | 380 |
| 381 // Notification that the user scripts have been updated. It has one | 381 // Notification that the user scripts have been updated. It has one |
| 382 // SharedMemoryHandle argument consisting of the pickled script data. This | 382 // SharedMemoryHandle argument consisting of the pickled script data. This |
| 383 // handle is valid in the context of the renderer. | 383 // handle is valid in the context of the renderer. |
| 384 // If |owner| is not empty, then the shared memory handle refers to |owner|'s | |
| 385 // programmatically defined scripts. Otherwise, the handle refers to all | |
| 386 // extensions' statically defined scripts. | |
| 384 // If |changed_extensions| is not empty, only the extensions in that set will | 387 // If |changed_extensions| is not empty, only the extensions in that set will |
| 385 // be updated. Otherwise, all extensions will be updated. | 388 // be updated. Otherwise, all extensions that have scripts in the shared memory |
| 386 IPC_MESSAGE_CONTROL2(ExtensionMsg_UpdateUserScripts, | 389 // region will be updated. |
| 390 IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts, | |
|
Jeffrey Yasskin
2014/07/24 21:09:19
How are you going to use the scripts in the single
Mark Dittmer
2014/07/25 15:09:05
Short answer: This data lives in the UserScript ob
| |
| 387 base::SharedMemoryHandle, | 391 base::SharedMemoryHandle, |
| 392 extensions::ExtensionId /* owner */, | |
| 388 std::set<std::string> /* changed extensions */) | 393 std::set<std::string> /* changed extensions */) |
| 389 | 394 |
| 390 // Tell the render view which browser window it's being attached to. | 395 // Tell the render view which browser window it's being attached to. |
| 391 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, | 396 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, |
| 392 int /* id of browser window */) | 397 int /* id of browser window */) |
| 393 | 398 |
| 394 // Tell the render view what its tab ID is. | 399 // Tell the render view what its tab ID is. |
| 395 IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabId, | 400 IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabId, |
| 396 int /* id of tab */) | 401 int /* id of tab */) |
| 397 | 402 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 677 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the | 682 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the |
| 678 // main frame. | 683 // main frame. |
| 679 // * Something changed on an existing frame causing the set of matching searches | 684 // * Something changed on an existing frame causing the set of matching searches |
| 680 // to change. | 685 // to change. |
| 681 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, | 686 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, |
| 682 std::vector<std::string> /* Matching CSS selectors */) | 687 std::vector<std::string> /* Matching CSS selectors */) |
| 683 | 688 |
| 684 // Sent by the renderer when it has received a Blob handle from the browser. | 689 // Sent by the renderer when it has received a Blob handle from the browser. |
| 685 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, | 690 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, |
| 686 std::vector<std::string> /* blob_uuids */) | 691 std::vector<std::string> /* blob_uuids */) |
| OLD | NEW |