blob: 20b67849a430a290292e47bed84e11d26a2483f0 [file] [log] [blame]
// 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_