OLD | NEW |
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 #ifndef CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_ | 5 #ifndef SYNC_UTIL_CRYPTOGRAPHER_H_ |
6 #define CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_ | 6 #define SYNC_UTIL_CRYPTOGRAPHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "chrome/browser/sync/syncable/model_type.h" | 16 #include "sync/syncable/model_type.h" |
17 #include "chrome/browser/sync/util/nigori.h" | 17 #include "sync/util/nigori.h" |
18 #include "sync/protocol/encryption.pb.h" | 18 #include "sync/protocol/encryption.pb.h" |
19 #include "sync/protocol/nigori_specifics.pb.h" | 19 #include "sync/protocol/nigori_specifics.pb.h" |
20 | 20 |
21 namespace browser_sync { | 21 namespace browser_sync { |
22 | 22 |
23 class Encryptor; | 23 class Encryptor; |
24 | 24 |
25 extern const char kNigoriTag[]; | 25 extern const char kNigoriTag[]; |
26 | 26 |
27 // The parameters used to initialize a Nigori instance. | 27 // The parameters used to initialize a Nigori instance. |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 scoped_ptr<sync_pb::EncryptedData> pending_keys_; | 237 scoped_ptr<sync_pb::EncryptedData> pending_keys_; |
238 | 238 |
239 syncable::ModelTypeSet encrypted_types_; | 239 syncable::ModelTypeSet encrypted_types_; |
240 bool encrypt_everything_; | 240 bool encrypt_everything_; |
241 | 241 |
242 DISALLOW_COPY_AND_ASSIGN(Cryptographer); | 242 DISALLOW_COPY_AND_ASSIGN(Cryptographer); |
243 }; | 243 }; |
244 | 244 |
245 } // namespace browser_sync | 245 } // namespace browser_sync |
246 | 246 |
247 #endif // CHROME_BROWSER_SYNC_UTIL_CRYPTOGRAPHER_H_ | 247 #endif // SYNC_UTIL_CRYPTOGRAPHER_H_ |
OLD | NEW |