OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |