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

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

Issue 10387144: [Sync] - Implement isolated model association. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 years, 7 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_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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_impl_unittest.cc ('k') | chrome/browser/sync/glue/fake_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698