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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DOUBLE R..ebase 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_GLUE_SYNC_BACKEND_HOST_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // encrypted using the accepted passphrase. 87 // encrypted using the accepted passphrase.
88 virtual void OnPassphraseAccepted() = 0; 88 virtual void OnPassphraseAccepted() = 0;
89 89
90 virtual void OnEncryptionComplete( 90 virtual void OnEncryptionComplete(
91 const syncable::ModelTypeSet& encrypted_types) = 0; 91 const syncable::ModelTypeSet& encrypted_types) = 0;
92 92
93 // Called to perform migration of |types|. 93 // Called to perform migration of |types|.
94 virtual void OnMigrationNeededForTypes( 94 virtual void OnMigrationNeededForTypes(
95 const syncable::ModelTypeSet& types) = 0; 95 const syncable::ModelTypeSet& types) = 0;
96 96
97 // Inform the Frontend that new datatypes are available for registration.
98 virtual void OnDataTypesChanged(const syncable::ModelTypeSet& to_add) = 0;
99
97 protected: 100 protected:
98 // Don't delete through SyncFrontend interface. 101 // Don't delete through SyncFrontend interface.
99 virtual ~SyncFrontend() { 102 virtual ~SyncFrontend() {
100 } 103 }
101 private: 104 private:
102 DISALLOW_COPY_AND_ASSIGN(SyncFrontend); 105 DISALLOW_COPY_AND_ASSIGN(SyncFrontend);
103 }; 106 };
104 107
105 // A UI-thread safe API into the sync backend that "hosts" the top-level 108 // A UI-thread safe API into the sync backend that "hosts" the top-level
106 // syncapi element, the SyncManager, on its own thread. This class handles 109 // syncapi element, the SyncManager, on its own thread. This class handles
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 543
541 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. 544 // UI-thread cache of the last SyncSessionSnapshot received from syncapi.
542 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; 545 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_;
543 546
544 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 547 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
545 }; 548 };
546 549
547 } // namespace browser_sync 550 } // namespace browser_sync
548 551
549 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 552 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_impl_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698