| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ | 6 #define COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "components/sync/base/model_type.h" | 14 #include "components/sync/base/model_type.h" |
| 15 #include "components/sync/engine/events/protocol_event.h" | 15 #include "components/sync/engine/events/protocol_event.h" |
| 16 #include "components/sync/protocol/sync.pb.h" | 16 #include "components/sync/protocol/sync.pb.h" |
| 17 | 17 |
| 18 namespace syncer { | 18 namespace syncer { |
| 19 | 19 |
| 20 namespace sessions { | |
| 21 class NudgeTracker; | 20 class NudgeTracker; |
| 22 } // namespace sessions | |
| 23 | 21 |
| 24 // An event representing a 'normal mode' GetUpdate request to the server. | 22 // An event representing a 'normal mode' GetUpdate request to the server. |
| 25 class NormalGetUpdatesRequestEvent : public ProtocolEvent { | 23 class NormalGetUpdatesRequestEvent : public ProtocolEvent { |
| 26 public: | 24 public: |
| 27 NormalGetUpdatesRequestEvent(base::Time timestamp, | 25 NormalGetUpdatesRequestEvent(base::Time timestamp, |
| 28 const sessions::NudgeTracker& nudge_tracker, | 26 const NudgeTracker& nudge_tracker, |
| 29 const sync_pb::ClientToServerMessage& request); | 27 const sync_pb::ClientToServerMessage& request); |
| 30 | 28 |
| 31 ~NormalGetUpdatesRequestEvent() override; | 29 ~NormalGetUpdatesRequestEvent() override; |
| 32 | 30 |
| 33 base::Time GetTimestamp() const override; | 31 base::Time GetTimestamp() const override; |
| 34 std::string GetType() const override; | 32 std::string GetType() const override; |
| 35 std::string GetDetails() const override; | 33 std::string GetDetails() const override; |
| 36 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override; | 34 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override; |
| 37 std::unique_ptr<ProtocolEvent> Clone() const override; | 35 std::unique_ptr<ProtocolEvent> Clone() const override; |
| 38 | 36 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 52 const bool is_retry_; | 50 const bool is_retry_; |
| 53 | 51 |
| 54 const sync_pb::ClientToServerMessage request_; | 52 const sync_pb::ClientToServerMessage request_; |
| 55 | 53 |
| 56 DISALLOW_COPY_AND_ASSIGN(NormalGetUpdatesRequestEvent); | 54 DISALLOW_COPY_AND_ASSIGN(NormalGetUpdatesRequestEvent); |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace syncer | 57 } // namespace syncer |
| 60 | 58 |
| 61 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ | 59 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ |
| OLD | NEW |