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

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

Issue 15825008: Remove the event URL security check out of the renderer and into the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add self check Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 ListValue /* response wrapper (see comment above) */, 290 ListValue /* response wrapper (see comment above) */,
291 std::string /* error */) 291 std::string /* error */)
292 292
293 // This message is optionally routed. If used as a control message, it 293 // This message is optionally routed. If used as a control message, it
294 // will call a javascript function in every registered context in the 294 // will call a javascript function in every registered context in the
295 // target process. If routed, it will be restricted to the contexts that 295 // target process. If routed, it will be restricted to the contexts that
296 // are part of the target RenderView. 296 // are part of the target RenderView.
297 // If |extension_id| is non-empty, the function will be invoked only in 297 // If |extension_id| is non-empty, the function will be invoked only in
298 // contexts owned by the extension. |args| is a list of primitive Value types 298 // contexts owned by the extension. |args| is a list of primitive Value types
299 // that are passed to the function. 299 // that are passed to the function.
300 IPC_MESSAGE_ROUTED5(ExtensionMsg_MessageInvoke, 300 IPC_MESSAGE_ROUTED4(ExtensionMsg_MessageInvoke,
301 std::string /* extension_id */, 301 std::string /* extension_id */,
302 std::string /* function_name */, 302 std::string /* function_name */,
303 ListValue /* args */, 303 ListValue /* args */,
304 GURL /* event URL */,
305 bool /* delivered as part of a user gesture */) 304 bool /* delivered as part of a user gesture */)
306 305
307 // Tell the renderer process all known extension function names. 306 // Tell the renderer process all known extension function names.
308 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetFunctionNames, 307 IPC_MESSAGE_CONTROL1(ExtensionMsg_SetFunctionNames,
309 std::vector<std::string>) 308 std::vector<std::string>)
310 309
311 // Marks an extension as 'active' in an extension process. 'Active' extensions 310 // Marks an extension as 'active' in an extension process. 'Active' extensions
312 // have more privileges than other extension content that might end up running 311 // have more privileges than other extension content that might end up running
313 // in the process (e.g. because of iframes or content scripts). 312 // in the process (e.g. because of iframes or content scripts).
314 IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateExtension, 313 IPC_MESSAGE_CONTROL1(ExtensionMsg_ActivateExtension,
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 // Notifies the browser process that a tab has started or stopped matching 635 // Notifies the browser process that a tab has started or stopped matching
637 // certain conditions. This message is sent in response to several events: 636 // certain conditions. This message is sent in response to several events:
638 // 637 //
639 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 638 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
640 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. 639 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
641 // Currently this only fires for the main frame. 640 // Currently this only fires for the main frame.
642 // * 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
643 // to change. 642 // to change.
644 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 643 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
645 std::vector<std::string> /* Matching CSS selectors */) 644 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW
« no previous file with comments | « chrome/browser/extensions/event_router.cc ('k') | chrome/renderer/extensions/chrome_v8_context_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698