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

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

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 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 | Annotate | Revision Log
« no previous file with comments | « sync/engine/commit.cc ('k') | sync/engine/download.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DOWNLOAD_H_ 5 #ifndef SYNC_ENGINE_DOWNLOAD_H_
6 #define SYNC_ENGINE_DOWNLOAD_H_ 6 #define SYNC_ENGINE_DOWNLOAD_H_
7 7
8 #include "sync/base/sync_export.h" 8 #include "sync/base/sync_export.h"
9 #include "sync/internal_api/public/base/model_type.h" 9 #include "sync/internal_api/public/base/model_type.h"
10 #include "sync/internal_api/public/util/syncer_error.h" 10 #include "sync/internal_api/public/util/syncer_error.h"
11 #include "sync/protocol/sync.pb.h"
11 12
12 namespace sync_pb { 13 namespace sync_pb {
13 class DebugInfo; 14 class DebugInfo;
14 } // namespace sync_pb 15 } // namespace sync_pb
15 16
16 namespace syncer { 17 namespace syncer {
17 18
18 namespace sessions { 19 namespace sessions {
19 class NudgeTracker; 20 class NudgeTracker;
20 class SyncSession; 21 class SyncSession;
21 struct SyncSourceInfo;
22 } // namespace sessions 22 } // namespace sessions
23 23
24 class Syncer; 24 class Syncer;
25 25
26 // This function executes a single GetUpdate request and stores the response in 26 // This function executes a single GetUpdate request and stores the response in
27 // the session's StatusController. It constructs the type of request used to 27 // the session's StatusController. It constructs the type of request used to
28 // keep types in sync when in normal mode. 28 // keep types in sync when in normal mode.
29 SYNC_EXPORT_PRIVATE SyncerError NormalDownloadUpdates( 29 SYNC_EXPORT_PRIVATE SyncerError NormalDownloadUpdates(
30 sessions::SyncSession* session, 30 sessions::SyncSession* session,
31 bool create_mobile_bookmarks_folder, 31 bool create_mobile_bookmarks_folder,
32 ModelTypeSet request_types, 32 ModelTypeSet request_types,
33 const sessions::NudgeTracker& nudge_tracker); 33 const sessions::NudgeTracker& nudge_tracker);
34 34
35 // This function executes a single GetUpdate request and stores the response in 35 // This function executes a single GetUpdate request and stores the response in
36 // the session's StatusController. It constructs the type of request used to 36 // the session's StatusController. It constructs the type of request used to
37 // initialize a type for the first time. 37 // initialize a type for the first time.
38 SYNC_EXPORT_PRIVATE SyncerError DownloadUpdatesForConfigure( 38 SYNC_EXPORT_PRIVATE SyncerError DownloadUpdatesForConfigure(
39 sessions::SyncSession* session, 39 sessions::SyncSession* session,
40 bool create_mobile_bookmarks_folder, 40 bool create_mobile_bookmarks_folder,
41 const syncer::sessions::SyncSourceInfo& source, 41 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
42 ModelTypeSet request_types); 42 ModelTypeSet request_types);
43 43
44 // This function executes a single GetUpdate request and stores the response in 44 // This function executes a single GetUpdate request and stores the response in
45 // the session's status controller. It constructs the type of request used for 45 // the session's status controller. It constructs the type of request used for
46 // periodic polling. 46 // periodic polling.
47 SYNC_EXPORT_PRIVATE SyncerError DownloadUpdatesForPoll( 47 SYNC_EXPORT_PRIVATE SyncerError DownloadUpdatesForPoll(
48 sessions::SyncSession* session, 48 sessions::SyncSession* session,
49 bool create_mobile_bookmarks_folder, 49 bool create_mobile_bookmarks_folder,
50 ModelTypeSet request_types); 50 ModelTypeSet request_types);
51 51
52 // A helper to set debug info. Exposed only for testing. 52 // A helper to set debug info. Exposed only for testing.
53 SYNC_EXPORT_PRIVATE void AppendClientDebugInfoIfNeeded( 53 SYNC_EXPORT_PRIVATE void AppendClientDebugInfoIfNeeded(
54 sessions::SyncSession* session, 54 sessions::SyncSession* session,
55 sync_pb::DebugInfo* debug_info); 55 sync_pb::DebugInfo* debug_info);
56 56
57 } // namespace syncer 57 } // namespace syncer
58 58
59 #endif // SYNC_ENGINE_DOWNLOAD_H_ 59 #endif // SYNC_ENGINE_DOWNLOAD_H_
OLDNEW
« no previous file with comments | « sync/engine/commit.cc ('k') | sync/engine/download.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698