Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1495)

Unified Diff: sync/engine/get_key_command.h

Issue 10455012: [Sync] Add support for performing a GetKey on startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/engine/get_key_command.h
diff --git a/sync/engine/get_key_command.h b/sync/engine/get_key_command.h
new file mode 100644
index 0000000000000000000000000000000000000000..805526ef595932d91ab794a2d0d270d4db821c37
--- /dev/null
+++ b/sync/engine/get_key_command.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 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_GET_KEY_COMMAND_H_
+#define SYNC_ENGINE_GET_KEY_COMMAND_H_
+
+#include "base/compiler_specific.h"
+#include "sync/engine/syncer_command.h"
+
+namespace syncer {
+
+// Sends the GetKey message to the sync server.
+class GetKeyCommand : public SyncerCommand {
+ public:
+ explicit GetKeyCommand();
+ virtual ~GetKeyCommand();
+
+ // SyncerCommand implementation.
+ virtual SyncerError ExecuteImpl(sessions::SyncSession* session) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GetKeyCommand);
+};
+
+} // namespace syncer
+
+#endif // SYNC_ENGINE_GET_KEY_COMMAND_H_

Powered by Google App Engine
This is Rietveld 408576698