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

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

Issue 240223004: When passing a user gesture along with a message, include the timestamp of the user gesture to prev… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « extensions/common/api/messaging/message.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 IPC_STRUCT_TRAITS_MEMBER(product_id()) 187 IPC_STRUCT_TRAITS_MEMBER(product_id())
188 IPC_STRUCT_TRAITS_END() 188 IPC_STRUCT_TRAITS_END()
189 189
190 IPC_STRUCT_TRAITS_BEGIN(extensions::MediaGalleriesPermissionData) 190 IPC_STRUCT_TRAITS_BEGIN(extensions::MediaGalleriesPermissionData)
191 IPC_STRUCT_TRAITS_MEMBER(permission()) 191 IPC_STRUCT_TRAITS_MEMBER(permission())
192 IPC_STRUCT_TRAITS_END() 192 IPC_STRUCT_TRAITS_END()
193 193
194 IPC_STRUCT_TRAITS_BEGIN(extensions::Message) 194 IPC_STRUCT_TRAITS_BEGIN(extensions::Message)
195 IPC_STRUCT_TRAITS_MEMBER(data) 195 IPC_STRUCT_TRAITS_MEMBER(data)
196 IPC_STRUCT_TRAITS_MEMBER(user_gesture) 196 IPC_STRUCT_TRAITS_MEMBER(user_gesture)
197 IPC_STRUCT_TRAITS_MEMBER(user_gesture_timestamp)
197 IPC_STRUCT_TRAITS_END() 198 IPC_STRUCT_TRAITS_END()
198 199
199 // Singly-included section for custom IPC traits. 200 // Singly-included section for custom IPC traits.
200 #ifndef EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_ 201 #ifndef EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_
201 #define EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_ 202 #define EXTENSIONS_COMMON_EXTENSION_MESSAGES_H_
202 203
203 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need 204 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
204 // to typedef it to avoid that. 205 // to typedef it to avoid that.
205 // Substitution map for l10n messages. 206 // Substitution map for l10n messages.
206 typedef std::map<std::string, std::string> SubstitutionMap; 207 typedef std::map<std::string, std::string> SubstitutionMap;
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 // certain conditions. This message is sent in response to several events: 629 // certain conditions. This message is sent in response to several events:
629 // 630 //
630 // * ExtensionMsg_WatchPages was received, updating the set of conditions. 631 // * ExtensionMsg_WatchPages was received, updating the set of conditions.
631 // * A new page is loaded. This will be sent after 632 // * A new page is loaded. This will be sent after
632 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the 633 // FrameHostMsg_DidCommitProvisionalLoad. Currently this only fires for the
633 // main frame. 634 // main frame.
634 // * Something changed on an existing frame causing the set of matching searches 635 // * Something changed on an existing frame causing the set of matching searches
635 // to change. 636 // to change.
636 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange, 637 IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
637 std::vector<std::string> /* Matching CSS selectors */) 638 std::vector<std::string> /* Matching CSS selectors */)
OLDNEW
« no previous file with comments | « extensions/common/api/messaging/message.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698