OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <set> | 9 #include <set> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 ConfigureResultWithErrorLocation(); | 60 ConfigureResultWithErrorLocation(); |
61 ConfigureResultWithErrorLocation(const ConfigureResult& result, | 61 ConfigureResultWithErrorLocation(const ConfigureResult& result, |
62 const tracked_objects::Location& location, | 62 const tracked_objects::Location& location, |
63 const TypeSet& requested_types) | 63 const TypeSet& requested_types) |
64 : result(result), | 64 : result(result), |
65 requested_types(requested_types) { | 65 requested_types(requested_types) { |
66 this->location.reset(new tracked_objects::Location( | 66 this->location.reset(new tracked_objects::Location( |
67 location.function_name(), | 67 location.function_name(), |
68 location.file_name(), | 68 location.file_name(), |
69 location.line_number())); | 69 location.line_number(), |
| 70 location.program_counter())); |
70 } | 71 } |
71 | 72 |
72 ~ConfigureResultWithErrorLocation(); | 73 ~ConfigureResultWithErrorLocation(); |
73 }; | 74 }; |
74 | 75 |
75 | 76 |
76 virtual ~DataTypeManager() {} | 77 virtual ~DataTypeManager() {} |
77 | 78 |
78 // Begins asynchronous configuration of data types. Any currently | 79 // Begins asynchronous configuration of data types. Any currently |
79 // running data types that are not in the desired_types set will be | 80 // running data types that are not in the desired_types set will be |
(...skipping 19 matching lines...) Expand all Loading... |
99 // Reference to map of data type controllers. | 100 // Reference to map of data type controllers. |
100 virtual const DataTypeController::TypeMap& controllers() = 0; | 101 virtual const DataTypeController::TypeMap& controllers() = 0; |
101 | 102 |
102 // The current state of the data type manager. | 103 // The current state of the data type manager. |
103 virtual State state() = 0; | 104 virtual State state() = 0; |
104 }; | 105 }; |
105 | 106 |
106 } // namespace browser_sync | 107 } // namespace browser_sync |
107 | 108 |
108 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ | 109 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ |
OLD | NEW |