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

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

Issue 1177853002: [Sync] Add ability to save/restore Nigori to SyncEncryptionHandlerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 // Invoked when the passphrase state has changed. Caches the passphrase state 273 // Invoked when the passphrase state has changed. Caches the passphrase state
274 // for later use on the UI thread. 274 // for later use on the UI thread.
275 // If |type| is FROZEN_IMPLICIT_PASSPHRASE or CUSTOM_PASSPHRASE, 275 // If |type| is FROZEN_IMPLICIT_PASSPHRASE or CUSTOM_PASSPHRASE,
276 // |explicit_passphrase_time| is the time at which that passphrase was set 276 // |explicit_passphrase_time| is the time at which that passphrase was set
277 // (if available). 277 // (if available).
278 void HandlePassphraseTypeChangedOnFrontendLoop( 278 void HandlePassphraseTypeChangedOnFrontendLoop(
279 syncer::PassphraseType type, 279 syncer::PassphraseType type,
280 base::Time explicit_passphrase_time); 280 base::Time explicit_passphrase_time);
281 281
282 void HandleLocalSetCustomPassphraseOnFrontendLoop(
283 const syncer::SyncEncryptionHandler::NigoriState& nigori_state);
284
282 void HandleStopSyncingPermanentlyOnFrontendLoop(); 285 void HandleStopSyncingPermanentlyOnFrontendLoop();
283 286
284 // Dispatched to from OnConnectionStatusChange to handle updating 287 // Dispatched to from OnConnectionStatusChange to handle updating
285 // frontend UI components. 288 // frontend UI components.
286 void HandleConnectionStatusChangeOnFrontendLoop( 289 void HandleConnectionStatusChangeOnFrontendLoop(
287 syncer::ConnectionStatus status); 290 syncer::ConnectionStatus status);
288 291
289 // NotificationObserver implementation. 292 // NotificationObserver implementation.
290 void Observe(int type, 293 void Observe(int type,
291 const content::NotificationSource& source, 294 const content::NotificationSource& source,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 bool invalidation_handler_registered_; 357 bool invalidation_handler_registered_;
355 358
356 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 359 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
357 360
358 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 361 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
359 }; 362 };
360 363
361 } // namespace browser_sync 364 } // namespace browser_sync
362 365
363 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 366 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
364
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698