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

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

Issue 145463002: Extensions: Send the tab id to platform apps. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // where we expose APIs to normal web pages using the extension function 75 // where we expose APIs to normal web pages using the extension function
76 // system. 76 // system.
77 IPC_STRUCT_MEMBER(std::string, extension_id) 77 IPC_STRUCT_MEMBER(std::string, extension_id)
78 78
79 // URL of the frame the request was sent from. This isn't necessarily an 79 // URL of the frame the request was sent from. This isn't necessarily an
80 // extension url. Extension requests can also originate from content scripts, 80 // extension url. Extension requests can also originate from content scripts,
81 // in which case extension_id will indicate the ID of the associated 81 // in which case extension_id will indicate the ID of the associated
82 // extension. Or, they can originate from hosted apps or normal web pages. 82 // extension. Or, they can originate from hosted apps or normal web pages.
83 IPC_STRUCT_MEMBER(GURL, source_url) 83 IPC_STRUCT_MEMBER(GURL, source_url)
84 84
85 // The id of the tab that sent this request, or -1 if there is no source tab.
86 IPC_STRUCT_MEMBER(int, source_tab_id)
87
85 // Unique request id to match requests and responses. 88 // Unique request id to match requests and responses.
86 IPC_STRUCT_MEMBER(int, request_id) 89 IPC_STRUCT_MEMBER(int, request_id)
87 90
88 // True if request has a callback specified. 91 // True if request has a callback specified.
89 IPC_STRUCT_MEMBER(bool, has_callback) 92 IPC_STRUCT_MEMBER(bool, has_callback)
90 93
91 // True if request is executed in response to an explicit user gesture. 94 // True if request is executed in response to an explicit user gesture.
92 IPC_STRUCT_MEMBER(bool, user_gesture) 95 IPC_STRUCT_MEMBER(bool, user_gesture)
93 IPC_STRUCT_END() 96 IPC_STRUCT_END()
94 97
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 // Notifies the browser process that a tab has started or stopped matching 673 // Notifies the browser process that a tab has started or stopped matching
671 // certain conditions. This message is sent in response to several events: 674 // certain conditions. This message is sent in response to several events:
672 // 675 //
673 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 676 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
674 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate. 677 // * A new page is loaded. This will be sent after ViewHostMsg_FrameNavigate.
675 // Currently this only fires for the main frame. 678 // Currently this only fires for the main frame.
676 // * Something changed on an existing frame causing the set of matching searches 679 // * Something changed on an existing frame causing the set of matching searches
677 // to change. 680 // to change.
678 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 681 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
679 std::vector<std::string> /* Matching CSS selectors */) 682 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698