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

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

Issue 16625012: Remove ExtensionURLInfo, make security decisions in render process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address feedback Created 7 years, 5 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // where we expose APIs to normal web pages using the extension function 73 // where we expose APIs to normal web pages using the extension function
74 // system. 74 // system.
75 IPC_STRUCT_MEMBER(std::string, extension_id) 75 IPC_STRUCT_MEMBER(std::string, extension_id)
76 76
77 // URL of the frame the request was sent from. This isn't necessarily an 77 // URL of the frame the request was sent from. This isn't necessarily an
78 // extension url. Extension requests can also originate from content scripts, 78 // extension url. Extension requests can also originate from content scripts,
79 // in which case extension_id will indicate the ID of the associated 79 // in which case extension_id will indicate the ID of the associated
80 // extension. Or, they can originate from hosted apps or normal web pages. 80 // extension. Or, they can originate from hosted apps or normal web pages.
81 IPC_STRUCT_MEMBER(GURL, source_url) 81 IPC_STRUCT_MEMBER(GURL, source_url)
82 82
83 // Web security origin of the frame the request was sent from.
84 IPC_STRUCT_MEMBER(string16, source_origin)
85
86 // Unique request id to match requests and responses. 83 // Unique request id to match requests and responses.
87 IPC_STRUCT_MEMBER(int, request_id) 84 IPC_STRUCT_MEMBER(int, request_id)
88 85
89 // True if request has a callback specified. 86 // True if request has a callback specified.
90 IPC_STRUCT_MEMBER(bool, has_callback) 87 IPC_STRUCT_MEMBER(bool, has_callback)
91 88
92 // True if request is executed in response to an explicit user gesture. 89 // True if request is executed in response to an explicit user gesture.
93 IPC_STRUCT_MEMBER(bool, user_gesture) 90 IPC_STRUCT_MEMBER(bool, user_gesture)
94 IPC_STRUCT_END() 91 IPC_STRUCT_END()
95 92
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // Notifies the browser process that a tab has started or stopped matching 639 // Notifies the browser process that a tab has started or stopped matching
643 // certain conditions. This message is sent in response to several events: 640 // certain conditions. This message is sent in response to several events:
644 // 641 //
645 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 642 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
646 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. 643 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
647 // Currently this only fires for the main frame. 644 // Currently this only fires for the main frame.
648 // * Something changed on an existing frame causing the set of matching searches 645 // * Something changed on an existing frame causing the set of matching searches
649 // to change. 646 // to change.
650 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 647 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
651 std::vector<std::string> /* Matching CSS selectors */) 648 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW
« no previous file with comments | « chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.cc ('k') | chrome/common/extensions/extension_process_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698