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

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

Issue 15764010: Experimental functionize patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync: Expose sync functionality as functions Created 7 years, 6 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_ENGINE_DOWNLOAD_H_
6 #define SYNC_ENGINE_DOWNLOAD_H_
7
8 #include "sync/base/sync_export.h"
9 #include "sync/internal_api/public/base/model_type.h"
10 #include "sync/internal_api/public/util/syncer_error.h"
11
12 namespace sync_pb {
13 class DebugInfo;
14 } // namespace sync_pb
15
16 namespace syncer {
17
18 namespace sessions {
19 class NudgeTracker;
20 class SyncSession;
21 struct SyncSourceInfo;
22 } // namespace sessions
23
24 class Syncer;
25
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
28 // keep types in sync when in normal mode.
29 SYNC_EXPORT_PRIVATE SyncerError NormalDownloadUpdates(
30 sessions::SyncSession* session,
31 bool create_mobile_bookmarks_folder,
32 ModelTypeSet request_types,
33 const sessions::NudgeTracker& nudge_tracker);
34
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
37 // initialize a type for the first time.
38 SYNC_EXPORT_PRIVATE SyncerError ConfigureDownloadUpdates(
39 sessions::SyncSession* session,
40 bool create_mobile_bookmarks_folder,
41 const syncer::sessions::SyncSourceInfo& source,
42 ModelTypeSet request_types);
43
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
46 // periodic polling.
47 SYNC_EXPORT_PRIVATE SyncerError PollDownloadUpdates(
48 sessions::SyncSession* session,
49 bool create_mobile_bookmarks_folder,
50 ModelTypeSet request_types);
51
52 // A helper to set debug info. Exposed only for testing.
53 SYNC_EXPORT_PRIVATE void AppendClientDebugInfoIfNeeded(
54 sessions::SyncSession* session,
55 sync_pb::DebugInfo* debug_info);
56
57 } // namespace syncer
58
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