OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 SYNC_INTERNAL_API_PUBLIC_EVENTS_PROTOCOL_EVENT_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_EVENTS_PROTOCOL_EVENT_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_EVENTS_PROTOCOL_EVENT_H_ | 6 #define COMPONENTS_SYNC_ENGINE_EVENTS_PROTOCOL_EVENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "sync/base/sync_export.h" | 13 #include "components/sync/base/sync_export.h" |
14 | 14 |
15 namespace syncer { | 15 namespace syncer { |
16 | 16 |
17 // SyncNetworkEvents represent a single client <-> server sync protocol event | 17 // SyncNetworkEvents represent a single client <-> server sync protocol event |
18 // that recently took place. Sync protocol events occur when the client decides | 18 // that recently took place. Sync protocol events occur when the client decides |
19 // to send a sync protocol request (such as GetUpdates or Commit) to the server, | 19 // to send a sync protocol request (such as GetUpdates or Commit) to the server, |
20 // and when the server responds. Note that the requests and responses themselves | 20 // and when the server responds. Note that the requests and responses themselves |
21 // are modelled by {GetUpdates, Commit}x{Request,Response} objects. | 21 // are modelled by {GetUpdates, Commit}x{Request,Response} objects. |
22 // | 22 // |
23 // These objects are intended to be used for displaying information on | 23 // These objects are intended to be used for displaying information on |
(...skipping 27 matching lines...) Expand all Loading... |
51 virtual std::unique_ptr<ProtocolEvent> Clone() const = 0; | 51 virtual std::unique_ptr<ProtocolEvent> Clone() const = 0; |
52 | 52 |
53 // A static function that assembles the data exposed through the | 53 // A static function that assembles the data exposed through the |
54 // ProtocolEvent's interface into a single DictionaryValue. | 54 // ProtocolEvent's interface into a single DictionaryValue. |
55 static std::unique_ptr<base::DictionaryValue> ToValue( | 55 static std::unique_ptr<base::DictionaryValue> ToValue( |
56 const ProtocolEvent& event); | 56 const ProtocolEvent& event); |
57 }; | 57 }; |
58 | 58 |
59 } // namespace syncer | 59 } // namespace syncer |
60 | 60 |
61 #endif // SYNC_INTERNAL_API_PUBLIC_EVENTS_PROTOCOL_EVENT_H_ | 61 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_PROTOCOL_EVENT_H_ |
OLD | NEW |