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

Unified Diff: sync/syncable/nigori_util.h

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/syncable/nigori_handler.h ('k') | sync/syncable/on_disk_directory_backing_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/nigori_util.h
diff --git a/sync/syncable/nigori_util.h b/sync/syncable/nigori_util.h
index 7eefed42f2a6cb539d2778672964dfa7ad542d06..c2f00408240c51de7f720dc2e58dd7d62a44994b 100644
--- a/sync/syncable/nigori_util.h
+++ b/sync/syncable/nigori_util.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,6 +8,7 @@
#define SYNC_SYNCABLE_NIGORI_UTIL_H_
#include "base/compiler_specific.h"
+#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/protocol/nigori_specifics.pb.h"
@@ -33,7 +34,7 @@ class WriteTransaction;
// false if some unsynced changes need to be encrypted.
// This method is similar to ProcessUnsyncedChangesForEncryption but does not
// modify the data and does not care if data is unnecessarily encrypted.
-bool VerifyUnsyncedChangesAreEncrypted(
+SYNC_EXPORT_PRIVATE bool VerifyUnsyncedChangesAreEncrypted(
BaseTransaction* const trans,
ModelTypeSet encrypted_types);
@@ -49,11 +50,12 @@ bool EntryNeedsEncryption(ModelTypeSet encrypted_types,
const Entry& entry);
// Same as EntryNeedsEncryption, but looks at specifics.
-bool SpecificsNeedsEncryption(ModelTypeSet encrypted_types,
- const sync_pb::EntitySpecifics& specifics);
+SYNC_EXPORT_PRIVATE bool SpecificsNeedsEncryption(
+ ModelTypeSet encrypted_types,
+ const sync_pb::EntitySpecifics& specifics);
// Verifies all data of type |type| is encrypted appropriately.
-bool VerifyDataTypeEncryptionForTest(
+SYNC_EXPORT_PRIVATE bool VerifyDataTypeEncryptionForTest(
BaseTransaction* const trans,
ModelType type,
bool is_encrypted) WARN_UNUSED_RESULT;
@@ -68,9 +70,10 @@ bool UpdateEntryWithEncryption(
// Updates |nigori| to match the encryption state specified by |encrypted_types|
// and |encrypt_everything|.
-void UpdateNigoriFromEncryptedTypes(ModelTypeSet encrypted_types,
- bool encrypt_everything,
- sync_pb::NigoriSpecifics* nigori);
+SYNC_EXPORT_PRIVATE void UpdateNigoriFromEncryptedTypes(
+ ModelTypeSet encrypted_types,
+ bool encrypt_everything,
+ sync_pb::NigoriSpecifics* nigori);
// Extracts the set of encrypted types from a nigori node.
ModelTypeSet GetEncryptedTypesFromNigori(
« no previous file with comments | « sync/syncable/nigori_handler.h ('k') | sync/syncable/on_disk_directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698