OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 // Sets the Cryptographer's passphrase. This will check asynchronously whether | 319 // Sets the Cryptographer's passphrase. This will check asynchronously whether |
320 // the passphrase is valid and notify ProfileSyncServiceObservers via the | 320 // the passphrase is valid and notify ProfileSyncServiceObservers via the |
321 // NotificationService when the outcome is known. | 321 // NotificationService when the outcome is known. |
322 virtual void SetPassphrase(const std::string& passphrase); | 322 virtual void SetPassphrase(const std::string& passphrase); |
323 | 323 |
324 // Returns whether processing changes is allowed. Check this before doing | 324 // Returns whether processing changes is allowed. Check this before doing |
325 // any model-modifying operations. | 325 // any model-modifying operations. |
326 bool ShouldPushChanges(); | 326 bool ShouldPushChanges(); |
327 | 327 |
| 328 const GURL& sync_service_url() const { return sync_service_url_; } |
| 329 |
328 protected: | 330 protected: |
329 // Used by ProfileSyncServiceMock only. | 331 // Used by ProfileSyncServiceMock only. |
330 // | 332 // |
331 // TODO(akalin): Separate this class out into an abstract | 333 // TODO(akalin): Separate this class out into an abstract |
332 // ProfileSyncService interface and a ProfileSyncServiceImpl class | 334 // ProfileSyncService interface and a ProfileSyncServiceImpl class |
333 // so we don't need this hack anymore. | 335 // so we don't need this hack anymore. |
334 ProfileSyncService(); | 336 ProfileSyncService(); |
335 | 337 |
336 // Helper to install and configure a data type manager. | 338 // Helper to install and configure a data type manager. |
337 void ConfigureDataTypeManager(); | 339 void ConfigureDataTypeManager(); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 // DataTypeManager in the event that the server informed us to cease and | 462 // DataTypeManager in the event that the server informed us to cease and |
461 // desist syncing immediately. | 463 // desist syncing immediately. |
462 bool expect_sync_configuration_aborted_; | 464 bool expect_sync_configuration_aborted_; |
463 | 465 |
464 scoped_ptr<TokenMigrator> token_migrator_; | 466 scoped_ptr<TokenMigrator> token_migrator_; |
465 | 467 |
466 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 468 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
467 }; | 469 }; |
468 | 470 |
469 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 471 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |