blob: 20b67849a430a290292e47bed84e11d26a2483f0 (
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
|
// Copyright 2015 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_CLEAR_SERVER_DATA_H_
#define SYNC_ENGINE_CLEAR_SERVER_DATA_H_
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/util/syncer_error.h"
#include "sync/protocol/sync.pb.h"
namespace syncer {
namespace sessions {
class SyncSession;
}
// A ClearServerData operation.
//
// An instance of this class corresponds to a single operation and is
// responsible for building a request, sending it, and interpreting the
// response.
class SYNC_EXPORT_PRIVATE ClearServerData {
public:
explicit ClearServerData(const std::string& account_name);
~ClearServerData();
// Sends the request, blocking until the request has completed.
SyncerError SendRequest(sessions::SyncSession* session);
private:
sync_pb::ClientToServerMessage request_;
};
} // namespace syncer
#endif // SYNC_ENGINE_CLEAR_SERVER_DATA_H_
|