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

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

Issue 8851004: [Sync] Replace all instances of ModelTypeBitSet with ModelEnumSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // a blocking call). This causes syncapi thread-exit handlers 379 // a blocking call). This causes syncapi thread-exit handlers
380 // to run and make use of cached pointers to various components 380 // to run and make use of cached pointers to various components
381 // owned implicitly by us. 381 // owned implicitly by us.
382 // 3) Destroy this Core. That will delete syncapi components in a 382 // 3) Destroy this Core. That will delete syncapi components in a
383 // safe order because the thread that was using them has exited 383 // safe order because the thread that was using them has exited
384 // (in step 2). 384 // (in step 2).
385 void DoStopSyncManagerForShutdown(const base::Closure& closure); 385 void DoStopSyncManagerForShutdown(const base::Closure& closure);
386 void DoShutdown(bool stopping_sync); 386 void DoShutdown(bool stopping_sync);
387 387
388 virtual void DoRequestConfig( 388 virtual void DoRequestConfig(
389 const syncable::ModelTypeBitSet& types_to_config, 389 syncable::ModelEnumSet types_to_config,
390 sync_api::ConfigureReason reason); 390 sync_api::ConfigureReason reason);
391 391
392 // Start the configuration mode. |callback| is called on the sync 392 // Start the configuration mode. |callback| is called on the sync
393 // thread. 393 // thread.
394 virtual void DoStartConfiguration(const base::Closure& callback); 394 virtual void DoStartConfiguration(const base::Closure& callback);
395 395
396 // Set the base request context to use when making HTTP calls. 396 // Set the base request context to use when making HTTP calls.
397 // This method will add a reference to the context to persist it 397 // This method will add a reference to the context to persist it
398 // on the IO thread. Must be removed from IO thread. 398 // on the IO thread. Must be removed from IO thread.
399 399
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 600
601 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. 601 // UI-thread cache of the last SyncSessionSnapshot received from syncapi.
602 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; 602 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_;
603 603
604 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 604 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
605 }; 605 };
606 606
607 } // namespace browser_sync 607 } // namespace browser_sync
608 608
609 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 609 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncer_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