OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Various utility methods for nigory-based multi-type encryption. | 5 // Various utility methods for nigori-based multi-type encryption. |
6 | 6 |
7 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_NIGORI_UTIL_H_ | 7 #ifndef CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_ |
8 #define CHROME_BROWSER_SYNC_SYNCABLE_NIGORI_UTIL_H_ | 8 #define CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" | 11 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" |
12 #include "chrome/browser/sync/syncable/model_type.h" | 12 #include "chrome/browser/sync/syncable/model_type.h" |
13 | 13 |
14 namespace browser_sync { | 14 namespace browser_sync { |
15 class Cryptographer; | 15 class Cryptographer; |
16 } | 16 } |
17 | 17 |
18 namespace syncable { | 18 namespace syncable { |
(...skipping 25 matching lines...) Expand all Loading... |
44 browser_sync::Cryptographer* cryptographer); | 44 browser_sync::Cryptographer* cryptographer); |
45 | 45 |
46 // Verifies all data of type |type| is encrypted appropriately. | 46 // Verifies all data of type |type| is encrypted appropriately. |
47 bool VerifyDataTypeEncryption(BaseTransaction* const trans, | 47 bool VerifyDataTypeEncryption(BaseTransaction* const trans, |
48 browser_sync::Cryptographer* cryptographer, | 48 browser_sync::Cryptographer* cryptographer, |
49 ModelType type, | 49 ModelType type, |
50 bool is_encrypted); | 50 bool is_encrypted); |
51 | 51 |
52 } // namespace syncable | 52 } // namespace syncable |
53 | 53 |
54 #endif // CHROME_BROWSER_SYNC_SYNCABLE_NIGORI_UTIL_H_ | 54 #endif // CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_ |
OLD | NEW |