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

Side by Side Diff: sync/engine/get_updates_delegate.h

Issue 171813013: sync: Merge GU retry logic into normal GU (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sync/engine/get_updates_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 SYNC_ENGINE_GET_UPDATES_DELEGATE_H_ 5 #ifndef SYNC_ENGINE_GET_UPDATES_DELEGATE_H_
6 #define SYNC_ENGINE_GET_UPDATES_DELEGATE_H_ 6 #define SYNC_ENGINE_GET_UPDATES_DELEGATE_H_
7 7
8 #include "sync/protocol/sync.pb.h" 8 #include "sync/protocol/sync.pb.h"
9 #include "sync/sessions/model_type_registry.h" 9 #include "sync/sessions/model_type_registry.h"
10 #include "sync/sessions/nudge_tracker.h" 10 #include "sync/sessions/nudge_tracker.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void ApplyUpdates( 47 virtual void ApplyUpdates(
48 sessions::StatusController* status, 48 sessions::StatusController* status,
49 UpdateHandlerMap* update_handler_map) const OVERRIDE; 49 UpdateHandlerMap* update_handler_map) const OVERRIDE;
50 50
51 private: 51 private:
52 DISALLOW_COPY_AND_ASSIGN(NormalGetUpdatesDelegate); 52 DISALLOW_COPY_AND_ASSIGN(NormalGetUpdatesDelegate);
53 53
54 const sessions::NudgeTracker& nudge_tracker_; 54 const sessions::NudgeTracker& nudge_tracker_;
55 }; 55 };
56 56
57 // Functionality specific to the retry GetUpdate request.
58 class SYNC_EXPORT_PRIVATE RetryGetUpdatesDelegate : public GetUpdatesDelegate {
59 public:
60 RetryGetUpdatesDelegate();
61 virtual ~RetryGetUpdatesDelegate();
62
63 virtual void HelpPopulateGuMessage(
64 sync_pb::GetUpdatesMessage* get_updates) const OVERRIDE;
65
66 virtual void ApplyUpdates(
67 sessions::StatusController* status,
68 UpdateHandlerMap* update_handler_map) const OVERRIDE;
69
70 private:
71 DISALLOW_COPY_AND_ASSIGN(RetryGetUpdatesDelegate);
72 };
73
74 // Functionality specific to the configure GetUpdate request. 57 // Functionality specific to the configure GetUpdate request.
75 class SYNC_EXPORT_PRIVATE ConfigureGetUpdatesDelegate 58 class SYNC_EXPORT_PRIVATE ConfigureGetUpdatesDelegate
76 : public GetUpdatesDelegate { 59 : public GetUpdatesDelegate {
77 public: 60 public:
78 ConfigureGetUpdatesDelegate( 61 ConfigureGetUpdatesDelegate(
79 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source); 62 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source);
80 virtual ~ConfigureGetUpdatesDelegate(); 63 virtual ~ConfigureGetUpdatesDelegate();
81 64
82 // Sets the 'source' and 'origin' fields for this request. 65 // Sets the 'source' and 'origin' fields for this request.
83 virtual void HelpPopulateGuMessage( 66 virtual void HelpPopulateGuMessage(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 sessions::StatusController* status, 98 sessions::StatusController* status,
116 UpdateHandlerMap* update_handler_map) const OVERRIDE; 99 UpdateHandlerMap* update_handler_map) const OVERRIDE;
117 100
118 private: 101 private:
119 DISALLOW_COPY_AND_ASSIGN(PollGetUpdatesDelegate); 102 DISALLOW_COPY_AND_ASSIGN(PollGetUpdatesDelegate);
120 }; 103 };
121 104
122 } // namespace syncer 105 } // namespace syncer
123 106
124 #endif // SYNC_ENGINE_GET_UPDATES_DELEGATE_H_ 107 #endif // SYNC_ENGINE_GET_UPDATES_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | sync/engine/get_updates_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698