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

Side by Side Diff: components/gcm_driver/common/gcm_messages.h

Issue 1243563002: Teach the GCM Driver how to decrypt incoming messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcm-push-keys
Patch Set: address comment Created 5 years, 2 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
« no previous file with comments | « components/components_tests.gyp ('k') | components/gcm_driver/common/gcm_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_
6 #define COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ 6 #define COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 // Message being received from the other party. 32 // Message being received from the other party.
33 struct GCM_DRIVER_EXPORT IncomingMessage { 33 struct GCM_DRIVER_EXPORT IncomingMessage {
34 IncomingMessage(); 34 IncomingMessage();
35 ~IncomingMessage(); 35 ~IncomingMessage();
36 36
37 MessageData data; 37 MessageData data;
38 std::string collapse_key; 38 std::string collapse_key;
39 std::string sender_id; 39 std::string sender_id;
40 std::string raw_data; 40 std::string raw_data;
41
42 // Whether the contents of the message have been decrypted, and are
43 // available in |raw_data|.
44 bool decrypted;
41 }; 45 };
42 46
43 } // namespace gcm 47 } // namespace gcm
44 48
45 #endif // COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_ 49 #endif // COMPONENTS_GCM_DRIVER_COMMON_GCM_MESSAGES_H_
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/gcm_driver/common/gcm_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698