Fix UserSessionManager::Shutdown ordering.
[chromium-blink-merge.git] / sync / engine / clear_server_data.h
blob20b67849a430a290292e47bed84e11d26a2483f0
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"
12 namespace syncer {
14 namespace sessions {
15 class SyncSession;
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
22 // response.
23 class SYNC_EXPORT_PRIVATE ClearServerData {
24 public:
25 explicit ClearServerData(const std::string& account_name);
26 ~ClearServerData();
28 // Sends the request, blocking until the request has completed.
29 SyncerError SendRequest(sessions::SyncSession* session);
31 private:
32 sync_pb::ClientToServerMessage request_;
35 } // namespace syncer
37 #endif // SYNC_ENGINE_CLEAR_SERVER_DATA_H_