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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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_DATA_TYPE_MANAGER_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__
6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/sync/api/sync_error.h" 14 #include "chrome/browser/sync/api/sync_error.h"
15 #include "chrome/browser/sync/glue/data_type_controller.h" 15 #include "chrome/browser/sync/glue/data_type_controller.h"
16 #include "chrome/browser/sync/internal_api/configure_reason.h" 16 #include "chrome/browser/sync/internal_api/configure_reason.h"
17 #include "chrome/browser/sync/syncable/model_type.h" 17 #include "sync/syncable/model_type.h"
18 18
19 namespace browser_sync { 19 namespace browser_sync {
20 20
21 // This interface is for managing the start up and shut down life cycle 21 // This interface is for managing the start up and shut down life cycle
22 // of many different syncable data types. 22 // of many different syncable data types.
23 class DataTypeManager { 23 class DataTypeManager {
24 public: 24 public:
25 enum State { 25 enum State {
26 STOPPED, // No data types are currently running. 26 STOPPED, // No data types are currently running.
27 DOWNLOAD_PENDING, // Not implemented yet: Waiting for the syncer to 27 DOWNLOAD_PENDING, // Not implemented yet: Waiting for the syncer to
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // stopped. 94 // stopped.
95 virtual void Stop() = 0; 95 virtual void Stop() = 0;
96 96
97 // The current state of the data type manager. 97 // The current state of the data type manager.
98 virtual State state() const = 0; 98 virtual State state() const = 0;
99 }; 99 };
100 100
101 } // namespace browser_sync 101 } // namespace browser_sync
102 102
103 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ 103 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/data_type_error_handler.h ('k') | chrome/browser/sync/glue/data_type_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698