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

Side by Side Diff: components/sync_driver/data_type_manager.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DATA_TYPE_MANAGER_H__ 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 27 matching lines...) Expand all
38 ABORTED, // Start was aborted by calling Stop() before 38 ABORTED, // Start was aborted by calling Stop() before
39 // all types were started. 39 // all types were started.
40 UNRECOVERABLE_ERROR // We got an unrecoverable error during startup. 40 UNRECOVERABLE_ERROR // We got an unrecoverable error during startup.
41 }; 41 };
42 42
43 // Note: |errors| is only filled when status is not OK. 43 // Note: |errors| is only filled when status is not OK.
44 struct ConfigureResult { 44 struct ConfigureResult {
45 ConfigureResult(); 45 ConfigureResult();
46 ConfigureResult(ConfigureStatus status, 46 ConfigureResult(ConfigureStatus status,
47 syncer::ModelTypeSet requested_types); 47 syncer::ModelTypeSet requested_types);
48 ConfigureResult(const ConfigureResult& other);
48 ~ConfigureResult(); 49 ~ConfigureResult();
49 50
50 ConfigureStatus status; 51 ConfigureStatus status;
51 syncer::ModelTypeSet requested_types; 52 syncer::ModelTypeSet requested_types;
52 DataTypeStatusTable data_type_status_table; 53 DataTypeStatusTable data_type_status_table;
53 }; 54 };
54 55
55 virtual ~DataTypeManager() {} 56 virtual ~DataTypeManager() {}
56 57
57 // Convert a ConfigureStatus to string for debug purposes. 58 // Convert a ConfigureStatus to string for debug purposes.
(...skipping 30 matching lines...) Expand all
88 // stopped. 89 // stopped.
89 virtual void Stop() = 0; 90 virtual void Stop() = 0;
90 91
91 // The current state of the data type manager. 92 // The current state of the data type manager.
92 virtual State state() const = 0; 93 virtual State state() const = 0;
93 }; 94 };
94 95
95 } // namespace sync_driver 96 } // namespace sync_driver
96 97
97 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__ 98 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698