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

Side by Side Diff: chrome/browser/sync/util/cryptographer.h

Issue 2828021: Take 2: sync changes to support encryption (Closed)
Patch Set: fix flaky password test under valgrind Created 10 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
« no previous file with comments | « chrome/browser/sync/syncable/model_type.cc ('k') | chrome/browser/sync/util/cryptographer.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_ 5 #ifndef CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_
6 #define CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_ 6 #define CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/linked_ptr.h" 11 #include "base/linked_ptr.h"
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" 13 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h"
14 #include "chrome/browser/sync/util/nigori.h" 14 #include "chrome/browser/sync/util/nigori.h"
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 extern const char kNigoriTag[];
19
18 // The parameters used to initialize a Nigori instance. 20 // The parameters used to initialize a Nigori instance.
19 struct KeyParams { 21 struct KeyParams {
20 std::string hostname; 22 std::string hostname;
21 std::string username; 23 std::string username;
22 std::string password; 24 std::string password;
23 }; 25 };
24 26
25 // This class manages the Nigori objects used to encrypt and decrypt sensitive 27 // This class manages the Nigori objects used to encrypt and decrypt sensitive
26 // sync data (eg. passwords). Each Nigori object knows how to handle data 28 // sync data (eg. passwords). Each Nigori object knows how to handle data
27 // protected with a particular passphrase. 29 // protected with a particular passphrase.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 NigoriMap::value_type* default_nigori_; // The Nigori used for encryption. 100 NigoriMap::value_type* default_nigori_; // The Nigori used for encryption.
99 101
100 scoped_ptr<sync_pb::EncryptedData> pending_keys_; 102 scoped_ptr<sync_pb::EncryptedData> pending_keys_;
101 103
102 DISALLOW_COPY_AND_ASSIGN(Cryptographer); 104 DISALLOW_COPY_AND_ASSIGN(Cryptographer);
103 }; 105 };
104 106
105 } // namespace browser_sync 107 } // namespace browser_sync
106 108
107 #endif // CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_ 109 #endif // CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/model_type.cc ('k') | chrome/browser/sync/util/cryptographer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698