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 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 <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 30 matching lines...) Expand all Loading... |
41 class ProfileSyncComponentsFactory; | 41 class ProfileSyncComponentsFactory; |
42 class SigninManager; | 42 class SigninManager; |
43 class SyncGlobalError; | 43 class SyncGlobalError; |
44 | 44 |
45 namespace browser_sync { | 45 namespace browser_sync { |
46 class BackendMigrator; | 46 class BackendMigrator; |
47 class ChangeProcessor; | 47 class ChangeProcessor; |
48 class DataTypeManager; | 48 class DataTypeManager; |
49 class JsController; | 49 class JsController; |
50 class SessionModelAssociator; | 50 class SessionModelAssociator; |
51 namespace sessions { struct SyncSessionSnapshot; } | 51 namespace sessions { class SyncSessionSnapshot; } |
52 } | 52 } |
53 | 53 |
54 namespace sync_api { | 54 namespace sync_api { |
55 class BaseTransaction; | 55 class BaseTransaction; |
56 struct SyncCredentials; | 56 struct SyncCredentials; |
57 struct UserShare; | 57 struct UserShare; |
58 } | 58 } |
59 | 59 |
60 namespace sync_pb { | 60 namespace sync_pb { |
61 class EncryptedData; | 61 class EncryptedData; |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 // TODO(akalin): This is called mostly by ModelAssociators and | 353 // TODO(akalin): This is called mostly by ModelAssociators and |
354 // tests. Figure out how to pass the handle to the ModelAssociators | 354 // tests. Figure out how to pass the handle to the ModelAssociators |
355 // directly, figure out how to expose this to tests, and remove this | 355 // directly, figure out how to expose this to tests, and remove this |
356 // function. | 356 // function. |
357 virtual sync_api::UserShare* GetUserShare() const; | 357 virtual sync_api::UserShare* GetUserShare() const; |
358 | 358 |
359 // TODO(akalin): These two functions are used only by | 359 // TODO(akalin): These two functions are used only by |
360 // ProfileSyncServiceHarness. Figure out a different way to expose | 360 // ProfileSyncServiceHarness. Figure out a different way to expose |
361 // this info to that class, and remove these functions. | 361 // this info to that class, and remove these functions. |
362 | 362 |
363 virtual const browser_sync::sessions::SyncSessionSnapshot* | 363 virtual browser_sync::sessions::SyncSessionSnapshot |
364 GetLastSessionSnapshot() const; | 364 GetLastSessionSnapshot() const; |
365 | 365 |
366 // Returns whether or not the underlying sync engine has made any | 366 // Returns whether or not the underlying sync engine has made any |
367 // local changes to items that have not yet been synced with the | 367 // local changes to items that have not yet been synced with the |
368 // server. | 368 // server. |
369 bool HasUnsyncedItems() const; | 369 bool HasUnsyncedItems() const; |
370 | 370 |
371 // Used by ProfileSyncServiceHarness. May return NULL. | 371 // Used by ProfileSyncServiceHarness. May return NULL. |
372 browser_sync::BackendMigrator* GetBackendMigratorForTest(); | 372 browser_sync::BackendMigrator* GetBackendMigratorForTest(); |
373 | 373 |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 bool setup_in_progress_; | 746 bool setup_in_progress_; |
747 | 747 |
748 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 748 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
749 }; | 749 }; |
750 | 750 |
751 bool ShouldShowActionOnUI( | 751 bool ShouldShowActionOnUI( |
752 const browser_sync::SyncProtocolError& error); | 752 const browser_sync::SyncProtocolError& error); |
753 | 753 |
754 | 754 |
755 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 755 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |