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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // | 301 // |
302 // The format is: | 302 // The format is: |
303 // [ {"name": <name>, "value": <value>, "status": <status> }, ... ] | 303 // [ {"name": <name>, "value": <value>, "status": <status> }, ... ] |
304 // where <name> is a type's name, <value> is a string providing details for | 304 // where <name> is a type's name, <value> is a string providing details for |
305 // the type's status, and <status> is one of "error", "warning" or "ok" | 305 // the type's status, and <status> is one of "error", "warning" or "ok" |
306 // depending on the type's current status. | 306 // depending on the type's current status. |
307 // | 307 // |
308 // This function is used by about_sync_util.cc to help populate the about:sync | 308 // This function is used by about_sync_util.cc to help populate the about:sync |
309 // page. It returns a ListValue rather than a DictionaryValue in part to make | 309 // page. It returns a ListValue rather than a DictionaryValue in part to make |
310 // it easier to iterate over its elements when constructing that page. | 310 // it easier to iterate over its elements when constructing that page. |
311 virtual base::Value* GetTypeStatusMap() const = 0; | 311 virtual base::Value* GetTypeStatusMap() = 0; |
312 | 312 |
313 virtual const GURL& sync_service_url() const = 0; | 313 virtual const GURL& sync_service_url() const = 0; |
314 | 314 |
315 virtual std::string unrecoverable_error_message() const = 0; | 315 virtual std::string unrecoverable_error_message() const = 0; |
316 virtual tracked_objects::Location unrecoverable_error_location() const = 0; | 316 virtual tracked_objects::Location unrecoverable_error_location() const = 0; |
317 | 317 |
318 virtual void AddProtocolEventObserver( | 318 virtual void AddProtocolEventObserver( |
319 browser_sync::ProtocolEventObserver* observer) = 0; | 319 browser_sync::ProtocolEventObserver* observer) = 0; |
320 virtual void RemoveProtocolEventObserver( | 320 virtual void RemoveProtocolEventObserver( |
321 browser_sync::ProtocolEventObserver* observer) = 0; | 321 browser_sync::ProtocolEventObserver* observer) = 0; |
(...skipping 19 matching lines...) Expand all Loading... |
341 protected: | 341 protected: |
342 SyncService() {} | 342 SyncService() {} |
343 | 343 |
344 private: | 344 private: |
345 DISALLOW_COPY_AND_ASSIGN(SyncService); | 345 DISALLOW_COPY_AND_ASSIGN(SyncService); |
346 }; | 346 }; |
347 | 347 |
348 } // namespace sync_driver | 348 } // namespace sync_driver |
349 | 349 |
350 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 350 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
OLD | NEW |