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

Side by Side Diff: sync/internal_api/public/sync_manager.h

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref some smart pointers Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/task_runner.h" 16 #include "base/task_runner.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "sync/base/sync_export.h" 18 #include "sync/base/sync_export.h"
19 #include "sync/internal_api/public/base/model_type.h" 19 #include "sync/internal_api/public/base/model_type.h"
20 #include "sync/internal_api/public/change_record.h" 20 #include "sync/internal_api/public/change_record.h"
21 #include "sync/internal_api/public/configure_reason.h" 21 #include "sync/internal_api/public/configure_reason.h"
22 #include "sync/internal_api/public/engine/model_safe_worker.h" 22 #include "sync/internal_api/public/engine/model_safe_worker.h"
23 #include "sync/internal_api/public/engine/sync_status.h" 23 #include "sync/internal_api/public/engine/sync_status.h"
24 #include "sync/internal_api/public/events/protocol_event.h" 24 #include "sync/internal_api/public/events/protocol_event.h"
25 #include "sync/internal_api/public/sync_core_proxy.h" 25 #include "sync/internal_api/public/sync_context_proxy.h"
26 #include "sync/internal_api/public/sync_encryption_handler.h" 26 #include "sync/internal_api/public/sync_encryption_handler.h"
27 #include "sync/internal_api/public/util/report_unrecoverable_error_function.h" 27 #include "sync/internal_api/public/util/report_unrecoverable_error_function.h"
28 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" 28 #include "sync/internal_api/public/util/unrecoverable_error_handler.h"
29 #include "sync/internal_api/public/util/weak_handle.h" 29 #include "sync/internal_api/public/util/weak_handle.h"
30 #include "sync/notifier/invalidation_handler.h" 30 #include "sync/notifier/invalidation_handler.h"
31 #include "sync/protocol/sync_protocol_error.h" 31 #include "sync/protocol/sync_protocol_error.h"
32 32
33 namespace sync_pb { 33 namespace sync_pb {
34 class EncryptedData; 34 class EncryptedData;
35 } // namespace sync_pb 35 } // namespace sync_pb
36 36
37 namespace syncer { 37 namespace syncer {
38 38
39 class BaseTransaction; 39 class BaseTransaction;
40 class CancelationSignal; 40 class CancelationSignal;
41 class DataTypeDebugInfoListener; 41 class DataTypeDebugInfoListener;
42 class Encryptor; 42 class Encryptor;
43 class ExtensionsActivity; 43 class ExtensionsActivity;
44 class HttpPostProviderFactory; 44 class HttpPostProviderFactory;
45 class InternalComponentsFactory; 45 class InternalComponentsFactory;
46 class JsBackend; 46 class JsBackend;
47 class JsEventHandler; 47 class JsEventHandler;
48 class ProtocolEvent; 48 class ProtocolEvent;
49 class SyncCoreProxy; 49 class SyncContextProxy;
50 class SyncEncryptionHandler; 50 class SyncEncryptionHandler;
51 class SyncScheduler; 51 class SyncScheduler;
52 class TypeDebugInfoObserver; 52 class TypeDebugInfoObserver;
53 struct Experiments; 53 struct Experiments;
54 struct UserShare; 54 struct UserShare;
55 55
56 namespace sessions { 56 namespace sessions {
57 class SyncSessionSnapshot; 57 class SyncSessionSnapshot;
58 } // namespace sessions 58 } // namespace sessions
59 59
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // to the syncapi model. 325 // to the syncapi model.
326 virtual void SaveChanges() = 0; 326 virtual void SaveChanges() = 0;
327 327
328 // Issue a final SaveChanges, and close sqlite handles. 328 // Issue a final SaveChanges, and close sqlite handles.
329 virtual void ShutdownOnSyncThread() = 0; 329 virtual void ShutdownOnSyncThread() = 0;
330 330
331 // May be called from any thread. 331 // May be called from any thread.
332 virtual UserShare* GetUserShare() = 0; 332 virtual UserShare* GetUserShare() = 0;
333 333
334 // Returns an instance of the main interface for non-blocking sync types. 334 // Returns an instance of the main interface for non-blocking sync types.
335 virtual syncer::SyncCoreProxy* GetSyncCoreProxy() = 0; 335 virtual syncer::SyncContextProxy* GetSyncContextProxy() = 0;
336 336
337 // Returns the cache_guid of the currently open database. 337 // Returns the cache_guid of the currently open database.
338 // Requires that the SyncManager be initialized. 338 // Requires that the SyncManager be initialized.
339 virtual const std::string cache_guid() = 0; 339 virtual const std::string cache_guid() = 0;
340 340
341 // Reads the nigori node to determine if any experimental features should 341 // Reads the nigori node to determine if any experimental features should
342 // be enabled. 342 // be enabled.
343 // Note: opens a transaction. May be called on any thread. 343 // Note: opens a transaction. May be called on any thread.
344 virtual bool ReceivedExperiment(Experiments* experiments) = 0; 344 virtual bool ReceivedExperiment(Experiments* experiments) = 0;
345 345
(...skipping 22 matching lines...) Expand all
368 syncer::TypeDebugInfoObserver* observer) = 0; 368 syncer::TypeDebugInfoObserver* observer) = 0;
369 369
370 // Request that all current counter values be emitted as though they had just 370 // Request that all current counter values be emitted as though they had just
371 // been updated. Useful for initializing new observers' state. 371 // been updated. Useful for initializing new observers' state.
372 virtual void RequestEmitDebugInfo() = 0; 372 virtual void RequestEmitDebugInfo() = 0;
373 }; 373 };
374 374
375 } // namespace syncer 375 } // namespace syncer
376 376
377 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 377 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_core_proxy.h ('k') | sync/internal_api/public/test/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698