OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 const tracked_objects::Location& from_here, | 358 const tracked_objects::Location& from_here, |
359 const std::string& message) OVERRIDE; | 359 const std::string& message) OVERRIDE; |
360 | 360 |
361 // The functions below (until ActivateDataType()) should only be | 361 // The functions below (until ActivateDataType()) should only be |
362 // called if sync_initialized() is true. | 362 // called if sync_initialized() is true. |
363 | 363 |
364 // TODO(akalin): This is called mostly by ModelAssociators and | 364 // TODO(akalin): This is called mostly by ModelAssociators and |
365 // tests. Figure out how to pass the handle to the ModelAssociators | 365 // tests. Figure out how to pass the handle to the ModelAssociators |
366 // directly, figure out how to expose this to tests, and remove this | 366 // directly, figure out how to expose this to tests, and remove this |
367 // function. | 367 // function. |
368 sync_api::UserShare* GetUserShare() const; | 368 virtual sync_api::UserShare* GetUserShare() const; |
369 | 369 |
370 // TODO(akalin): These two functions are used only by | 370 // TODO(akalin): These two functions are used only by |
371 // ProfileSyncServiceHarness. Figure out a different way to expose | 371 // ProfileSyncServiceHarness. Figure out a different way to expose |
372 // this info to that class, and remove these functions. | 372 // this info to that class, and remove these functions. |
373 | 373 |
374 virtual const browser_sync::sessions::SyncSessionSnapshot* | 374 virtual const browser_sync::sessions::SyncSessionSnapshot* |
375 GetLastSessionSnapshot() const; | 375 GetLastSessionSnapshot() const; |
376 | 376 |
377 // Returns whether or not the underlying sync engine has made any | 377 // Returns whether or not the underlying sync engine has made any |
378 // local changes to items that have not yet been synced with the | 378 // local changes to items that have not yet been synced with the |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 FailedDatatypesHandler failed_datatypes_handler_; | 691 FailedDatatypesHandler failed_datatypes_handler_; |
692 | 692 |
693 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 693 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
694 }; | 694 }; |
695 | 695 |
696 bool ShouldShowActionOnUI( | 696 bool ShouldShowActionOnUI( |
697 const browser_sync::SyncProtocolError& error); | 697 const browser_sync::SyncProtocolError& error); |
698 | 698 |
699 | 699 |
700 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 700 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |