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

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: Now acknowledges sync types when notification is clocked. 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
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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 syncable::ModelTypeSet* encrypted_types) const; 457 syncable::ModelTypeSet* encrypted_types) const;
458 458
459 // Returns whether processing changes is allowed. Check this before doing 459 // Returns whether processing changes is allowed. Check this before doing
460 // any model-modifying operations. 460 // any model-modifying operations.
461 bool ShouldPushChanges(); 461 bool ShouldPushChanges();
462 462
463 const GURL& sync_service_url() const { return sync_service_url_; } 463 const GURL& sync_service_url() const { return sync_service_url_; }
464 SigninManager* signin() { return signin_.get(); } 464 SigninManager* signin() { return signin_.get(); }
465 const std::string& cros_user() const { return cros_user_; } 465 const std::string& cros_user() const { return cros_user_; }
466 466
467 // Returns any promo text the sync engine wants to display on the NTP, or an
468 // empty string if no promo is needed.
469 string16 GetSyncNotification();
akalin 2011/08/02 20:16:53 is this const-able?
Andrew T Wilson (Slow) 2011/08/02 22:07:42 Done.
470
471 // Marks all currently registered types as "acknowledged" so we won't prompt
472 // the user about them any more.
473 void AcknowledgeSyncedTypes();
474
467 protected: 475 protected:
468 // Used by test classes that derive from ProfileSyncService. 476 // Used by test classes that derive from ProfileSyncService.
469 virtual browser_sync::SyncBackendHost* GetBackendForTest(); 477 virtual browser_sync::SyncBackendHost* GetBackendForTest();
470 478
471 // Helper to install and configure a data type manager. 479 // Helper to install and configure a data type manager.
472 void ConfigureDataTypeManager(); 480 void ConfigureDataTypeManager();
473 481
474 // Starts up the backend sync components. 482 // Starts up the backend sync components.
475 void StartUp(); 483 void StartUp();
476 // Shuts down the backend sync components. 484 // Shuts down the backend sync components.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 // because we haven't finished initializing). Cleared when we successfully 643 // because we haven't finished initializing). Cleared when we successfully
636 // post a new encrypt task to the sync backend. 644 // post a new encrypt task to the sync backend.
637 syncable::ModelTypeSet pending_types_for_encryption_; 645 syncable::ModelTypeSet pending_types_for_encryption_;
638 646
639 scoped_ptr<browser_sync::BackendMigrator> migrator_; 647 scoped_ptr<browser_sync::BackendMigrator> migrator_;
640 648
641 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 649 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
642 }; 650 };
643 651
644 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 652 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698