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

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

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test 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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // Called when configuration of the Nigori node has completed as 464 // Called when configuration of the Nigori node has completed as
465 // part of the initialization process. 465 // part of the initialization process.
466 void HandleNigoriConfigurationCompletedOnFrontendLoop( 466 void HandleNigoriConfigurationCompletedOnFrontendLoop(
467 syncer::ModelTypeSet failed_configuration_types); 467 syncer::ModelTypeSet failed_configuration_types);
468 468
469 // syncer::SyncNotifierObserver-like functions. 469 // syncer::SyncNotifierObserver-like functions.
470 void HandleNotificationsEnabledOnFrontendLoop(); 470 void HandleNotificationsEnabledOnFrontendLoop();
471 void HandleNotificationsDisabledOnFrontendLoop( 471 void HandleNotificationsDisabledOnFrontendLoop(
472 syncer::NotificationsDisabledReason reason); 472 syncer::NotificationsDisabledReason reason);
473 void HandleIncomingNotificationOnFrontendLoop( 473 void HandleIncomingNotificationOnFrontendLoop(
474 const syncer::ObjectIdPayloadMap& id_payloads, 474 const syncer::ObjectIdStateMap& id_state_map,
475 syncer::IncomingNotificationSource source); 475 syncer::IncomingNotificationSource source);
476 476
477 // Handles stopping the core's SyncManager, accounting for whether 477 // Handles stopping the core's SyncManager, accounting for whether
478 // initialization is done yet. 478 // initialization is done yet.
479 void StopSyncManagerForShutdown(const base::Closure& closure); 479 void StopSyncManagerForShutdown(const base::Closure& closure);
480 480
481 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_; 481 base::WeakPtrFactory<SyncBackendHost> weak_ptr_factory_;
482 482
483 // A thread where all the sync operations happen. 483 // A thread where all the sync operations happen.
484 base::Thread sync_thread_; 484 base::Thread sync_thread_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 // it via OnBackendInitialized in the final state of 530 // it via OnBackendInitialized in the final state of
531 // HandleInitializationCompletedOnFrontendLoop. 531 // HandleInitializationCompletedOnFrontendLoop.
532 syncer::WeakHandle<syncer::JsBackend> js_backend_; 532 syncer::WeakHandle<syncer::JsBackend> js_backend_;
533 533
534 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 534 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
535 }; 535 };
536 536
537 } // namespace browser_sync 537 } // namespace browser_sync
538 538
539 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 539 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/session_model_associator.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