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

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

Issue 404613006: Declarative content scripts: Renderer-side: per-extension shared memory regions (lazily loaded) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement changes from review comments missed in user_script_master_manager.cc Created 6 years, 4 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
OLDNEW
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
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. Note that the empty set => all extensions case is not
390 // supported for per-extension programmatically defined script regions; in such
Devlin 2014/07/29 17:11:57 nit of nits: programmatically-defined
Mark Dittmer 2014/07/29 22:01:13 Done.
391 // regions, the owner is expected to list itself as the only changed extension.
392 IPC_MESSAGE_CONTROL3(ExtensionMsg_UpdateUserScripts,
387 base::SharedMemoryHandle, 393 base::SharedMemoryHandle,
394 extensions::ExtensionId /* owner */,
388 std::set<std::string> /* changed extensions */) 395 std::set<std::string> /* changed extensions */)
389 396
390 // Tell the render view which browser window it's being attached to. 397 // Tell the render view which browser window it's being attached to.
391 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId, 398 IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId,
392 int /* id of browser window */) 399 int /* id of browser window */)
393 400
394 // Tell the render view what its tab ID is. 401 // Tell the render view what its tab ID is.
395 IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabId, 402 IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabId,
396 int /* id of tab */) 403 int /* id of tab */)
397 404
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the 684 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the
678 // main frame. 685 // main frame.
679 // * Something changed on an existing frame causing the set of matching searches 686 // * Something changed on an existing frame causing the set of matching searches
680 // to change. 687 // to change.
681 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 688 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
682 std::vector<std::string> /* Matching CSS selectors */) 689 std::vector<std::string> /* Matching CSS selectors */)
683 690
684 // Sent by the renderer when it has received a Blob handle from the browser. 691 // Sent by the renderer when it has received a Blob handle from the browser.
685 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck, 692 IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck,
686 std::vector<std::string> /* blob_uuids */) 693 std::vector<std::string> /* blob_uuids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698