OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // | 292 // |
293 // The format is: | 293 // The format is: |
294 // [ {"name": <name>, "value": <value>, "status": <status> }, ... ] | 294 // [ {"name": <name>, "value": <value>, "status": <status> }, ... ] |
295 // where <name> is a type's name, <value> is a string providing details for | 295 // where <name> is a type's name, <value> is a string providing details for |
296 // the type's status, and <status> is one of "error", "warning" or "ok" | 296 // the type's status, and <status> is one of "error", "warning" or "ok" |
297 // depending on the type's current status. | 297 // depending on the type's current status. |
298 // | 298 // |
299 // This function is used by about_sync_util.cc to help populate the about:sync | 299 // This function is used by about_sync_util.cc to help populate the about:sync |
300 // page. It returns a ListValue rather than a DictionaryValue in part to make | 300 // page. It returns a ListValue rather than a DictionaryValue in part to make |
301 // it easier to iterate over its elements when constructing that page. | 301 // it easier to iterate over its elements when constructing that page. |
302 virtual base::Value* GetTypeStatusMap() const = 0; | 302 virtual base::Value* GetTypeStatusMap() = 0; |
303 | 303 |
304 virtual const GURL& sync_service_url() const = 0; | 304 virtual const GURL& sync_service_url() const = 0; |
305 | 305 |
306 virtual std::string unrecoverable_error_message() const = 0; | 306 virtual std::string unrecoverable_error_message() const = 0; |
307 virtual tracked_objects::Location unrecoverable_error_location() const = 0; | 307 virtual tracked_objects::Location unrecoverable_error_location() const = 0; |
308 | 308 |
309 virtual void AddProtocolEventObserver(ProtocolEventObserver* observer) = 0; | 309 virtual void AddProtocolEventObserver(ProtocolEventObserver* observer) = 0; |
310 virtual void RemoveProtocolEventObserver(ProtocolEventObserver* observer) = 0; | 310 virtual void RemoveProtocolEventObserver(ProtocolEventObserver* observer) = 0; |
311 | 311 |
312 virtual void AddTypeDebugInfoObserver(TypeDebugInfoObserver* observer) = 0; | 312 virtual void AddTypeDebugInfoObserver(TypeDebugInfoObserver* observer) = 0; |
(...skipping 15 matching lines...) Expand all Loading... |
328 protected: | 328 protected: |
329 SyncService() {} | 329 SyncService() {} |
330 | 330 |
331 private: | 331 private: |
332 DISALLOW_COPY_AND_ASSIGN(SyncService); | 332 DISALLOW_COPY_AND_ASSIGN(SyncService); |
333 }; | 333 }; |
334 | 334 |
335 } // namespace syncer | 335 } // namespace syncer |
336 | 336 |
337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
OLD | NEW |