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

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

Issue 10828108: [sync] Add a polling mechanism to CredentialCacheService for on-the-fly sign in / sign out / reconf… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 months 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) 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 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // Returns true if the syncer is waiting for new datatypes to be encrypted. 508 // Returns true if the syncer is waiting for new datatypes to be encrypted.
509 virtual bool encryption_pending() const; 509 virtual bool encryption_pending() const;
510 510
511 // Returns whether processing changes is allowed. Check this before doing 511 // Returns whether processing changes is allowed. Check this before doing
512 // any model-modifying operations. 512 // any model-modifying operations.
513 bool ShouldPushChanges(); 513 bool ShouldPushChanges();
514 514
515 const GURL& sync_service_url() const { return sync_service_url_; } 515 const GURL& sync_service_url() const { return sync_service_url_; }
516 bool auto_start_enabled() const { return auto_start_enabled_; } 516 bool auto_start_enabled() const { return auto_start_enabled_; }
517 SigninManager* signin() const { return signin_; } 517 SigninManager* signin() const { return signin_; }
518 bool setup_in_progress() const { return setup_in_progress_; }
518 519
519 // Stops the sync backend and sets the flag for suppressing sync startup. 520 // Stops the sync backend and sets the flag for suppressing sync startup.
520 void StopAndSuppress(); 521 void StopAndSuppress();
521 522
522 // Resets the flag for suppressing sync startup and starts the sync backend. 523 // Resets the flag for suppressing sync startup and starts the sync backend.
523 void UnsuppressAndStart(); 524 void UnsuppressAndStart();
524 525
525 // Marks all currently registered types as "acknowledged" so we won't prompt 526 // Marks all currently registered types as "acknowledged" so we won't prompt
526 // the user about them any more. 527 // the user about them any more.
527 void AcknowledgeSyncedTypes(); 528 void AcknowledgeSyncedTypes();
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 syncer::SyncManagerFactory sync_manager_factory_; 818 syncer::SyncManagerFactory sync_manager_factory_;
818 819
819 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 820 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
820 }; 821 };
821 822
822 bool ShouldShowActionOnUI( 823 bool ShouldShowActionOnUI(
823 const syncer::SyncProtocolError& error); 824 const syncer::SyncProtocolError& error);
824 825
825 826
826 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 827 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698