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_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // SyncManager implementation. | 66 // SyncManager implementation. |
67 // Note: we treat whatever message loop this is called from as the sync | 67 // Note: we treat whatever message loop this is called from as the sync |
68 // loop for purposes of callbacks. | 68 // loop for purposes of callbacks. |
69 virtual void Init( | 69 virtual void Init( |
70 const FilePath& database_location, | 70 const FilePath& database_location, |
71 const WeakHandle<JsEventHandler>& event_handler, | 71 const WeakHandle<JsEventHandler>& event_handler, |
72 const std::string& sync_server_and_path, | 72 const std::string& sync_server_and_path, |
73 int sync_server_port, | 73 int sync_server_port, |
74 bool use_ssl, | 74 bool use_ssl, |
75 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | |
76 scoped_ptr<HttpPostProviderFactory> post_factory, | 75 scoped_ptr<HttpPostProviderFactory> post_factory, |
77 const std::vector<ModelSafeWorker*>& workers, | 76 const std::vector<ModelSafeWorker*>& workers, |
78 ExtensionsActivityMonitor* extensions_activity_monitor, | 77 ExtensionsActivityMonitor* extensions_activity_monitor, |
79 ChangeDelegate* change_delegate, | 78 ChangeDelegate* change_delegate, |
80 const SyncCredentials& credentials, | 79 const SyncCredentials& credentials, |
81 scoped_ptr<Invalidator> invalidator, | 80 scoped_ptr<Invalidator> invalidator, |
82 const std::string& restored_key_for_bootstrapping, | 81 const std::string& restored_key_for_bootstrapping, |
83 const std::string& restored_keystore_key_for_bootstrapping, | 82 const std::string& restored_keystore_key_for_bootstrapping, |
84 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 83 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
85 Encryptor* encryptor, | 84 Encryptor* encryptor, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 InvalidatorRegistrar registrar_; | 147 InvalidatorRegistrar registrar_; |
149 | 148 |
150 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; | 149 scoped_ptr<FakeSyncEncryptionHandler> fake_encryption_handler_; |
151 | 150 |
152 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); | 151 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); |
153 }; | 152 }; |
154 | 153 |
155 } // namespace syncer | 154 } // namespace syncer |
156 | 155 |
157 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ | 156 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ |
OLD | NEW |