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

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

Issue 10662035: [Sync] Put everything in sync/api into csync namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 years, 6 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_IMPL_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL_H__
6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/glue/data_type_manager.h" 9 #include "chrome/browser/sync/glue/data_type_manager.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Used by unit tests. TODO(sync) : This would go away if we made 50 // Used by unit tests. TODO(sync) : This would go away if we made
51 // this class be able to do Dependency injection. crbug.com/129212. 51 // this class be able to do Dependency injection. crbug.com/129212.
52 ModelAssociationManager* GetModelAssociationManagerForTesting() { 52 ModelAssociationManager* GetModelAssociationManagerForTesting() {
53 return &model_association_manager_; 53 return &model_association_manager_;
54 } 54 }
55 55
56 private: 56 private:
57 // Stops all data types. 57 // Stops all data types.
58 void FinishStop(); 58 void FinishStop();
59 void Abort(ConfigureStatus status, 59 void Abort(ConfigureStatus status,
60 const SyncError& error); 60 const csync::SyncError& error);
61 61
62 // If there's a pending reconfigure, processes it and returns true. 62 // If there's a pending reconfigure, processes it and returns true.
63 // Otherwise, returns false. 63 // Otherwise, returns false.
64 bool ProcessReconfigure(); 64 bool ProcessReconfigure();
65 65
66 void Restart(csync::ConfigureReason reason, 66 void Restart(csync::ConfigureReason reason,
67 BackendDataTypeConfigurer::NigoriState nigori_state); 67 BackendDataTypeConfigurer::NigoriState nigori_state);
68 void DownloadReady(syncable::ModelTypeSet failed_configuration_types); 68 void DownloadReady(syncable::ModelTypeSet failed_configuration_types);
69 69
70 // Notification from the SBH that download failed due to a transient 70 // Notification from the SBH that download failed due to a transient
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // The last time Restart() was called. 108 // The last time Restart() was called.
109 base::Time last_restart_time_; 109 base::Time last_restart_time_;
110 110
111 // The accumulated time spent between calls to Restart() and going 111 // The accumulated time spent between calls to Restart() and going
112 // to the DONE/BLOCKED state. 112 // to the DONE/BLOCKED state.
113 base::TimeDelta configure_time_delta_; 113 base::TimeDelta configure_time_delta_;
114 114
115 // Collects the list of errors resulting from failing to start a type. This 115 // Collects the list of errors resulting from failing to start a type. This
116 // would eventually be sent to the listeners after all the types have 116 // would eventually be sent to the listeners after all the types have
117 // been given a chance to start. 117 // been given a chance to start.
118 std::list<SyncError> failed_datatypes_info_; 118 std::list<csync::SyncError> failed_datatypes_info_;
119 ModelAssociationManager model_association_manager_; 119 ModelAssociationManager model_association_manager_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl); 121 DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl);
122 }; 122 };
123 123
124 } // namespace browser_sync 124 } // namespace browser_sync
125 125
126 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL_H__ 126 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_IMPL_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager.cc ('k') | chrome/browser/sync/glue/data_type_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698