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

Side by Side Diff: sync/internal_api/sync_rollback_manager_base.h

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
13 #include "base/macros.h"
11 #include "sync/base/sync_export.h" 14 #include "sync/base/sync_export.h"
12 #include "sync/internal_api/public/http_post_provider_factory.h" 15 #include "sync/internal_api/public/http_post_provider_factory.h"
13 #include "sync/internal_api/public/internal_components_factory.h" 16 #include "sync/internal_api/public/internal_components_factory.h"
14 #include "sync/internal_api/public/sync_manager.h" 17 #include "sync/internal_api/public/sync_manager.h"
15 #include "sync/internal_api/public/user_share.h" 18 #include "sync/internal_api/public/user_share.h"
16 #include "sync/syncable/directory_change_delegate.h" 19 #include "sync/syncable/directory_change_delegate.h"
17 #include "sync/syncable/transaction_observer.h" 20 #include "sync/syncable/transaction_observer.h"
18 21
19 namespace syncer { 22 namespace syncer {
20 23
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 77
75 // DirectoryChangeDelegate implementation. 78 // DirectoryChangeDelegate implementation.
76 void HandleTransactionCompleteChangeEvent( 79 void HandleTransactionCompleteChangeEvent(
77 ModelTypeSet models_with_changes) override; 80 ModelTypeSet models_with_changes) override;
78 ModelTypeSet HandleTransactionEndingChangeEvent( 81 ModelTypeSet HandleTransactionEndingChangeEvent(
79 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 82 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
80 syncable::BaseTransaction* trans) override; 83 syncable::BaseTransaction* trans) override;
81 void HandleCalculateChangesChangeEventFromSyncApi( 84 void HandleCalculateChangesChangeEventFromSyncApi(
82 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 85 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
83 syncable::BaseTransaction* trans, 86 syncable::BaseTransaction* trans,
84 std::vector<int64>* entries_changed) override; 87 std::vector<int64_t>* entries_changed) override;
85 void HandleCalculateChangesChangeEventFromSyncer( 88 void HandleCalculateChangesChangeEventFromSyncer(
86 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 89 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
87 syncable::BaseTransaction* trans, 90 syncable::BaseTransaction* trans,
88 std::vector<int64>* entries_changed) override; 91 std::vector<int64_t>* entries_changed) override;
89 92
90 // syncable::TransactionObserver implementation. 93 // syncable::TransactionObserver implementation.
91 void OnTransactionWrite( 94 void OnTransactionWrite(
92 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 95 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
93 ModelTypeSet models_with_changes) override; 96 ModelTypeSet models_with_changes) override;
94 97
95 protected: 98 protected:
96 base::ObserverList<SyncManager::Observer>* GetObservers(); 99 base::ObserverList<SyncManager::Observer>* GetObservers();
97 100
98 // Initialize sync backup DB. 101 // Initialize sync backup DB.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool initialized_; 140 bool initialized_;
138 141
139 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; 142 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_;
140 143
141 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); 144 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase);
142 }; 145 };
143 146
144 } // namespace syncer 147 } // namespace syncer
145 148
146 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 149 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_rollback_manager.cc ('k') | sync/internal_api/sync_rollback_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698