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

Side by Side Diff: components/sync/engine/events/protocol_event.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/sync/engine/events/poll_get_updates_request_event.cc ('k') | components/sync/engine/events/protocol_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698