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

Side by Side Diff: chrome/browser/sync/engine/nigori_util.h

Issue 8402014: [Sync] Make GetFirstChildId return a flag indicating success (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup comments Created 9 years, 1 month 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
OLDNEW
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 nigori-based multi-type encryption. 5 // Various utility methods for nigori-based multi-type encryption.
6 6
7 #ifndef CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_ 7 #ifndef CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_
8 #define CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_ 8 #define CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // otherwise. Note: this does not check that already encrypted entries are 48 // otherwise. Note: this does not check that already encrypted entries are
49 // encrypted with the proper key. 49 // encrypted with the proper key.
50 bool EntryNeedsEncryption(const ModelTypeSet& encrypted_types, 50 bool EntryNeedsEncryption(const ModelTypeSet& encrypted_types,
51 const Entry& entry); 51 const Entry& entry);
52 52
53 // Same as EntryNeedsEncryption, but looks at specifics. 53 // Same as EntryNeedsEncryption, but looks at specifics.
54 bool SpecificsNeedsEncryption(const ModelTypeSet& encrypted_types, 54 bool SpecificsNeedsEncryption(const ModelTypeSet& encrypted_types,
55 const sync_pb::EntitySpecifics& specifics); 55 const sync_pb::EntitySpecifics& specifics);
56 56
57 // Verifies all data of type |type| is encrypted appropriately. 57 // Verifies all data of type |type| is encrypted appropriately.
58 bool VerifyDataTypeEncryption(BaseTransaction* const trans, 58 bool VerifyDataTypeEncryptionForTest(
59 browser_sync::Cryptographer* cryptographer, 59 BaseTransaction* const trans,
60 ModelType type, 60 browser_sync::Cryptographer* cryptographer,
61 bool is_encrypted); 61 ModelType type,
62 bool is_encrypted);
62 63
63 } // namespace syncable 64 } // namespace syncable
64 65
65 #endif // CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_ 66 #endif // CHROME_BROWSER_SYNC_ENGINE_NIGORI_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698