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

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

Issue 226663003: Allow content script insertion on about:-URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move GetEffectiveDocumentURL to ScriptContext Created 6 years, 7 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // String of code to execute. 110 // String of code to execute.
111 IPC_STRUCT_MEMBER(std::string, code) 111 IPC_STRUCT_MEMBER(std::string, code)
112 112
113 // The webview guest source who calls to execute code. 113 // The webview guest source who calls to execute code.
114 IPC_STRUCT_MEMBER(GURL, webview_src) 114 IPC_STRUCT_MEMBER(GURL, webview_src)
115 115
116 // Whether to inject into all frames, or only the root frame. 116 // Whether to inject into all frames, or only the root frame.
117 IPC_STRUCT_MEMBER(bool, all_frames) 117 IPC_STRUCT_MEMBER(bool, all_frames)
118 118
119 // Whether to inject into about:blank (sub)frames.
120 IPC_STRUCT_MEMBER(bool, match_about_blank)
121
119 // When to inject the code. 122 // When to inject the code.
120 IPC_STRUCT_MEMBER(int, run_at) 123 IPC_STRUCT_MEMBER(int, run_at)
121 124
122 // Whether to execute code in the main world (as opposed to an isolated 125 // Whether to execute code in the main world (as opposed to an isolated
123 // world). 126 // world).
124 IPC_STRUCT_MEMBER(bool, in_main_world) 127 IPC_STRUCT_MEMBER(bool, in_main_world)
125 128
126 // Whether the request is coming from a <webview>. 129 // Whether the request is coming from a <webview>.
127 IPC_STRUCT_MEMBER(bool, is_web_view) 130 IPC_STRUCT_MEMBER(bool, is_web_view)
128 131
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // certain conditions. This message is sent in response to several events: 635 // certain conditions. This message is sent in response to several events:
633 // 636 //
634 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 637 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
635 // * A new page is loaded. This will be sent after 638 // * A new page is loaded. This will be sent after
636 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the 639 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the
637 // main frame. 640 // main frame.
638 // * Something changed on an existing frame causing the set of matching searches 641 // * Something changed on an existing frame causing the set of matching searches
639 // to change. 642 // to change.
640 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 643 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
641 std::vector<std::string> /* Matching CSS selectors */) 644 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/test_file_with_about_blank_in_srcdoc.html ('k') | extensions/common/manifest_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698