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

Side by Side Diff: components/sync_driver/glue/sync_backend_host_core.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::Closure report_unrecoverable_error_function; 73 base::Closure report_unrecoverable_error_function;
74 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state; 74 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state;
75 const syncer::PassphraseTransitionClearDataOption clear_data_option; 75 const syncer::PassphraseTransitionClearDataOption clear_data_option;
76 const std::map<syncer::ModelType, int64_t> invalidation_versions; 76 const std::map<syncer::ModelType, int64_t> invalidation_versions;
77 }; 77 };
78 78
79 // Helper struct to handle currying params to 79 // Helper struct to handle currying params to
80 // SyncBackendHost::Core::DoConfigureSyncer. 80 // SyncBackendHost::Core::DoConfigureSyncer.
81 struct DoConfigureSyncerTypes { 81 struct DoConfigureSyncerTypes {
82 DoConfigureSyncerTypes(); 82 DoConfigureSyncerTypes();
83 DoConfigureSyncerTypes(const DoConfigureSyncerTypes& other);
83 ~DoConfigureSyncerTypes(); 84 ~DoConfigureSyncerTypes();
84 syncer::ModelTypeSet to_download; 85 syncer::ModelTypeSet to_download;
85 syncer::ModelTypeSet to_purge; 86 syncer::ModelTypeSet to_purge;
86 syncer::ModelTypeSet to_journal; 87 syncer::ModelTypeSet to_journal;
87 syncer::ModelTypeSet to_unapply; 88 syncer::ModelTypeSet to_unapply;
88 }; 89 };
89 90
90 class SyncBackendHostCore 91 class SyncBackendHostCore
91 : public base::RefCountedThreadSafe<SyncBackendHostCore>, 92 : public base::RefCountedThreadSafe<SyncBackendHostCore>,
92 public syncer::SyncEncryptionHandler::Observer, 93 public syncer::SyncEncryptionHandler::Observer,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; 326 std::map<syncer::ModelType, int64_t> last_invalidation_versions_;
326 327
327 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; 328 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_;
328 329
329 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); 330 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore);
330 }; 331 };
331 332
332 } // namespace browser_sync 333 } // namespace browser_sync
333 334
334 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 335 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698