blob: 4ec4b5a19d558cc24dcd2d67842eba65fe48c740 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYNC_ENGINE_DOWNLOAD_H_
#define SYNC_ENGINE_DOWNLOAD_H_
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/util/syncer_error.h"
#include "sync/protocol/sync.pb.h"
namespace sync_pb {
class DebugInfo;
} // namespace sync_pb
namespace syncer {
namespace sessions {
class NudgeTracker;
class SyncSession;
} // namespace sessions
class Syncer;
// This function executes a single GetUpdate request and stores the response in
// the session's StatusController. It constructs the type of request used to
// keep types in sync when in normal mode.
SYNC_EXPORT_PRIVATE SyncerError NormalDownloadUpdates(
sessions::SyncSession* session,
bool create_mobile_bookmarks_folder,
ModelTypeSet request_types,
const sessions::NudgeTracker& nudge_tracker);
// This function executes a single GetUpdate request and stores the response in
// the session's StatusController. It constructs the type of request used to
// initialize a type for the first time.
SYNC_EXPORT_PRIVATE SyncerError DownloadUpdatesForConfigure(
sessions::SyncSession* session,
bool create_mobile_bookmarks_folder,
sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
ModelTypeSet request_types);
// This function executes a single GetUpdate request and stores the response in
// the session's status controller. It constructs the type of request used for
// periodic polling.
SYNC_EXPORT_PRIVATE SyncerError DownloadUpdatesForPoll(
sessions::SyncSession* session,
bool create_mobile_bookmarks_folder,
ModelTypeSet request_types);
// A helper to set debug info. Exposed only for testing.
SYNC_EXPORT_PRIVATE void AppendClientDebugInfoIfNeeded(
sessions::SyncSession* session,
sync_pb::DebugInfo* debug_info);
} // namespace syncer
#endif // SYNC_ENGINE_DOWNLOAD_H_
|