OLD | NEW |
---|---|
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_FAKE_DATA_TYPE_CONTROLLER_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_FAKE_DATA_TYPE_CONTROLLER_H__ |
6 #define CHROME_BROWSER_SYNC_GLUE_FAKE_DATA_TYPE_CONTROLLER_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_FAKE_DATA_TYPE_CONTROLLER_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/sync/glue/data_type_controller.h" | 9 #include "chrome/browser/sync/glue/data_type_controller.h" |
10 #include "chrome/browser/sync/glue/data_type_manager.h" | 10 #include "chrome/browser/sync/glue/data_type_manager.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 const std::string& message) OVERRIDE; | 48 const std::string& message) OVERRIDE; |
49 | 49 |
50 virtual void OnSingleDatatypeUnrecoverableError( | 50 virtual void OnSingleDatatypeUnrecoverableError( |
51 const tracked_objects::Location& from_here, | 51 const tracked_objects::Location& from_here, |
52 const std::string& message) OVERRIDE; | 52 const std::string& message) OVERRIDE; |
53 | 53 |
54 virtual void RecordUnrecoverableError( | 54 virtual void RecordUnrecoverableError( |
55 const tracked_objects::Location& from_here, | 55 const tracked_objects::Location& from_here, |
56 const std::string& message) OVERRIDE; | 56 const std::string& message) OVERRIDE; |
57 | 57 |
58 virtual void SetDelayModelLoad(); | |
59 | |
60 virtual void FinishModelLoad(); | |
tim (not reviewing)
2012/05/23 03:18:52
Call this 'SimulateModelLoadFinishing' or somethin
lipalani1
2012/05/23 17:47:20
Done.
| |
61 | |
58 private: | 62 private: |
59 DataTypeController::State state_; | 63 DataTypeController::State state_; |
64 bool model_load_delayed_; | |
60 syncable::ModelType type_; | 65 syncable::ModelType type_; |
61 StartCallback last_start_callback_; | 66 StartCallback last_start_callback_; |
67 ModelLoadCallback model_load_callback_; | |
62 }; | 68 }; |
63 | 69 |
64 } // namespace browser_sync | 70 } // namespace browser_sync |
65 #endif // CHROME_BROWSER_SYNC_GLUE_FAKE_DATA_TYPE_CONTROLLER_H__ | 71 #endif // CHROME_BROWSER_SYNC_GLUE_FAKE_DATA_TYPE_CONTROLLER_H__ |
66 | 72 |
OLD | NEW |