| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const std::string& message) OVERRIDE; | 47 const std::string& message) OVERRIDE; |
| 48 | 48 |
| 49 virtual void OnSingleDatatypeUnrecoverableError( | 49 virtual void OnSingleDatatypeUnrecoverableError( |
| 50 const tracked_objects::Location& from_here, | 50 const tracked_objects::Location& from_here, |
| 51 const std::string& message) OVERRIDE; | 51 const std::string& message) OVERRIDE; |
| 52 | 52 |
| 53 virtual void RecordUnrecoverableError( | 53 virtual void RecordUnrecoverableError( |
| 54 const tracked_objects::Location& from_here, | 54 const tracked_objects::Location& from_here, |
| 55 const std::string& message) OVERRIDE; | 55 const std::string& message) OVERRIDE; |
| 56 | 56 |
| 57 virtual void SetDelayModelLoad(); |
| 58 |
| 59 virtual void SimulateModelLoadFinishing(); |
| 60 |
| 57 protected: | 61 protected: |
| 58 virtual ~FakeDataTypeController(); | 62 virtual ~FakeDataTypeController(); |
| 59 | 63 |
| 60 | |
| 61 private: | 64 private: |
| 62 DataTypeController::State state_; | 65 DataTypeController::State state_; |
| 66 bool model_load_delayed_; |
| 63 syncable::ModelType type_; | 67 syncable::ModelType type_; |
| 64 StartCallback last_start_callback_; | 68 StartCallback last_start_callback_; |
| 69 ModelLoadCallback model_load_callback_; |
| 65 }; | 70 }; |
| 66 | 71 |
| 67 } // namespace browser_sync | 72 } // namespace browser_sync |
| 68 #endif // CHROME_BROWSER_SYNC_GLUE_FAKE_DATA_TYPE_CONTROLLER_H__ | 73 #endif // CHROME_BROWSER_SYNC_GLUE_FAKE_DATA_TYPE_CONTROLLER_H__ |
| 69 | 74 |
| OLD | NEW |