1 // Copyright 2015 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.
5 #ifndef SYNC_ENGINE_CLEAR_SERVER_DATA_H_
6 #define SYNC_ENGINE_CLEAR_SERVER_DATA_H_
8 #include "sync/base/sync_export.h"
9 #include "sync/internal_api/public/util/syncer_error.h"
10 #include "sync/protocol/sync.pb.h"
18 // A ClearServerData operation.
20 // An instance of this class corresponds to a single operation and is
21 // responsible for building a request, sending it, and interpreting the
23 class SYNC_EXPORT_PRIVATE ClearServerData
{
25 explicit ClearServerData(const std::string
& account_name
);
28 // Sends the request, blocking until the request has completed.
29 SyncerError
SendRequest(sessions::SyncSession
* session
);
32 sync_pb::ClientToServerMessage request_
;
37 #endif // SYNC_ENGINE_CLEAR_SERVER_DATA_H_