OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 public JsBackend, | 51 public JsBackend, |
52 public SyncEngineEventListener, | 52 public SyncEngineEventListener, |
53 public ServerConnectionEventListener, | 53 public ServerConnectionEventListener, |
54 public syncable::DirectoryChangeDelegate { | 54 public syncable::DirectoryChangeDelegate { |
55 public: | 55 public: |
56 // Create an uninitialized SyncManager. Callers must Init() before using. | 56 // Create an uninitialized SyncManager. Callers must Init() before using. |
57 explicit SyncManagerImpl(const std::string& name); | 57 explicit SyncManagerImpl(const std::string& name); |
58 virtual ~SyncManagerImpl(); | 58 virtual ~SyncManagerImpl(); |
59 | 59 |
60 // SyncManager implementation. | 60 // SyncManager implementation. |
61 virtual bool Init( | 61 virtual void Init( |
62 const FilePath& database_location, | 62 const FilePath& database_location, |
63 const WeakHandle<JsEventHandler>& event_handler, | 63 const WeakHandle<JsEventHandler>& event_handler, |
64 const std::string& sync_server_and_path, | 64 const std::string& sync_server_and_path, |
65 int sync_server_port, | 65 int sync_server_port, |
66 bool use_ssl, | 66 bool use_ssl, |
67 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 67 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
68 scoped_ptr<HttpPostProviderFactory> post_factory, | 68 scoped_ptr<HttpPostProviderFactory> post_factory, |
69 const std::vector<ModelSafeWorker*>& workers, | 69 const std::vector<ModelSafeWorker*>& workers, |
70 ExtensionsActivityMonitor* extensions_activity_monitor, | 70 ExtensionsActivityMonitor* extensions_activity_monitor, |
71 SyncManager::ChangeDelegate* change_delegate, | 71 SyncManager::ChangeDelegate* change_delegate, |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 // conflict resolver) updated the nigori's encryption keys in this chrome | 415 // conflict resolver) updated the nigori's encryption keys in this chrome |
416 // instantiation. | 416 // instantiation. |
417 int nigori_overwrite_count_; | 417 int nigori_overwrite_count_; |
418 | 418 |
419 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); | 419 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); |
420 }; | 420 }; |
421 | 421 |
422 } // namespace syncer | 422 } // namespace syncer |
423 | 423 |
424 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 424 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |