Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 8496002: Sync: Improve handling of database load failures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 protected: 498 protected:
499 // Used by test classes that derive from ProfileSyncService. 499 // Used by test classes that derive from ProfileSyncService.
500 virtual browser_sync::SyncBackendHost* GetBackendForTest(); 500 virtual browser_sync::SyncBackendHost* GetBackendForTest();
501 501
502 // Helper to install and configure a data type manager. 502 // Helper to install and configure a data type manager.
503 void ConfigureDataTypeManager(); 503 void ConfigureDataTypeManager();
504 504
505 // Starts up the backend sync components. 505 // Starts up the backend sync components.
506 void StartUp(); 506 void StartUp();
507 // Shuts down the backend sync components. 507 // Shuts down the backend sync components.
508 // |sync_disabled| indicates if syncing is being disabled or not. 508 // |delete_stale_data| indicates whether or not we should delete the current
509 void Shutdown(bool sync_disabled); 509 // sync database.
Nicolas Zea 2011/11/08 22:12:18 Elaborate a bit about why you would ever want to s
rlarocque 2011/11/11 22:24:56 I've decided not to do this rename. Instead I wil
510 void Shutdown(bool delete_stale_data);
510 511
511 // Return SyncCredentials from the TokenService. 512 // Return SyncCredentials from the TokenService.
512 sync_api::SyncCredentials GetCredentials(); 513 sync_api::SyncCredentials GetCredentials();
513 514
514 // Test need to override this to create backends that allow setting up 515 // Test need to override this to create backends that allow setting up
515 // initial conditions, such as populating sync nodes. 516 // initial conditions, such as populating sync nodes.
516 // 517 //
517 // TODO(akalin): Figure out a better way to do this. Ideally, we'd 518 // TODO(akalin): Figure out a better way to do this. Ideally, we'd
518 // construct the backend outside this class and pass it in to the 519 // construct the backend outside this class and pass it in to the
519 // contructor or Initialize(). 520 // contructor or Initialize().
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 FailedDatatypesHandler failed_datatypes_handler_; 717 FailedDatatypesHandler failed_datatypes_handler_;
717 718
718 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 719 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
719 }; 720 };
720 721
721 bool ShouldShowActionOnUI( 722 bool ShouldShowActionOnUI(
722 const browser_sync::SyncProtocolError& error); 723 const browser_sync::SyncProtocolError& error);
723 724
724 725
725 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 726 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698