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

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

Issue 7481023: Adding notifications for new sync types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with trunk. Created 9 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
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 9 #include <string>
10 10
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 virtual bool HasPendingEncryptedTypes() const; 464 virtual bool HasPendingEncryptedTypes() const;
465 465
466 // Returns whether processing changes is allowed. Check this before doing 466 // Returns whether processing changes is allowed. Check this before doing
467 // any model-modifying operations. 467 // any model-modifying operations.
468 bool ShouldPushChanges(); 468 bool ShouldPushChanges();
469 469
470 const GURL& sync_service_url() const { return sync_service_url_; } 470 const GURL& sync_service_url() const { return sync_service_url_; }
471 SigninManager* signin() { return signin_.get(); } 471 SigninManager* signin() { return signin_.get(); }
472 const std::string& cros_user() const { return cros_user_; } 472 const std::string& cros_user() const { return cros_user_; }
473 473
474 // Returns the set of unacknowledged types (new data types added since the
475 // last call to AcknowledgedSyncTypes())..
476 syncable::ModelTypeBitSet GetUnacknowledgedTypes() const;
477
478 // Marks all currently registered types as "acknowledged" so we won't prompt
479 // the user about them any more.
480 void AcknowledgeSyncedTypes();
481
474 protected: 482 protected:
475 // Used by test classes that derive from ProfileSyncService. 483 // Used by test classes that derive from ProfileSyncService.
476 virtual browser_sync::SyncBackendHost* GetBackendForTest(); 484 virtual browser_sync::SyncBackendHost* GetBackendForTest();
477 485
478 // Helper to install and configure a data type manager. 486 // Helper to install and configure a data type manager.
479 void ConfigureDataTypeManager(); 487 void ConfigureDataTypeManager();
480 488
481 // Starts up the backend sync components. 489 // Starts up the backend sync components.
482 void StartUp(); 490 void StartUp();
483 // Shuts down the backend sync components. 491 // Shuts down the backend sync components.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // and cached until the syncer either finishes encryption 649 // and cached until the syncer either finishes encryption
642 // (OnEncryptionComplete) or the user cancels. 650 // (OnEncryptionComplete) or the user cancels.
643 syncable::ModelTypeSet pending_types_for_encryption_; 651 syncable::ModelTypeSet pending_types_for_encryption_;
644 652
645 scoped_ptr<browser_sync::BackendMigrator> migrator_; 653 scoped_ptr<browser_sync::BackendMigrator> migrator_;
646 654
647 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 655 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
648 }; 656 };
649 657
650 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 658 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.js ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698