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

Unified Diff: remoting/protocol/pin_fetcher.h

Issue 12518027: Protocol / client plugin changes to support interactively asking for a PIN (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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: remoting/protocol/pin_fetcher.h
diff --git a/remoting/protocol/pin_fetcher.h b/remoting/protocol/pin_fetcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..c85d222ad9c236dbeb514c81976418a5734cd9b7
--- /dev/null
+++ b/remoting/protocol/pin_fetcher.h
@@ -0,0 +1,25 @@
+// Copyright 2013 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 REMOTING_PROTOCOL_PIN_FETCHER_H_
+#define REMOTING_PROTOCOL_PIN_FETCHER_H_
+
+#include "base/callback_forward.h"
+
+namespace remoting {
+namespace protocol {
+
+class PinFetcher {
Sergey Ulanov 2013/03/17 21:29:21 Do we need this interface at all? There is only on
rmsousa 2013/03/18 21:07:26 Kinda... there's also an implicit Cancel() (in the
Sergey Ulanov 2013/03/19 02:44:53 But what does the cancel do? Would it hide the PIN
rmsousa 2013/03/19 23:14:31 Done.
+ public:
+ typedef base::Callback<void(const std::string& pin)> PinFetchedCallback;
+
+ virtual ~PinFetcher() {}
+
+ virtual void FetchPin(const PinFetchedCallback& pin_fetched_callback) = 0;
+};
+
+} // namespace protocol
+} // namespace remoting
+
+#endif // REMOTING_PROTOCOL_PIN_FETCHER_H_

Powered by Google App Engine
This is Rietveld 408576698