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

Unified Diff: remoting/client/plugin/pepper_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/client/plugin/pepper_pin_fetcher.h
diff --git a/remoting/client/plugin/pepper_pin_fetcher.h b/remoting/client/plugin/pepper_pin_fetcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..33e33db7146c407b53822e22aa388bfc8d3ff2db
--- /dev/null
+++ b/remoting/client/plugin/pepper_pin_fetcher.h
@@ -0,0 +1,34 @@
+// 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_CLIENT_PLUGIN_PEPPER_PIN_FETCHER_H_
+#define REMOTING_CLIENT_PLUGIN_PEPPER_PIN_FETCHER_H_
+
+#include "base/callback.h"
+#include "base/memory/weak_ptr.h"
+#include "remoting/protocol/pin_fetcher.h"
+
+namespace remoting {
+
+class ChromotingInstance;
+
+class PepperPinFetcher : public protocol::PinFetcher {
+ public:
+ explicit PepperPinFetcher(base::WeakPtr<ChromotingInstance> parent);
+ virtual ~PepperPinFetcher() OVERRIDE;
+
+ // protocol::PinClientAuthenticator::PinFetcher interface.
+ virtual void FetchPin(
+ const PinFetchedCallback& pin_fetched_callback) OVERRIDE;
+ virtual void OnPinFetched(const std::string& pin);
+ private:
Sergey Ulanov 2013/03/17 21:29:21 nit: add empty line before private:
rmsousa 2013/03/18 21:07:26 Done.
+ base::WeakPtr<ChromotingInstance> parent_;
Sergey Ulanov 2013/03/17 21:29:21 parent_ is ambiguous. Call it plugin_ or plugin_in
rmsousa 2013/03/18 21:07:26 Done.
+ base::WeakPtrFactory<PepperPinFetcher> weak_factory_;
+ PinFetchedCallback pin_fetched_callback_;
+ DISALLOW_COPY_AND_ASSIGN(PepperPinFetcher);
Sergey Ulanov 2013/03/17 21:29:21 nit: empty line
rmsousa 2013/03/18 21:07:26 Done.
+};
+
+} // namespace remoting
+
+#endif // REMOTING_CLIENT_PLUGIN_PEPPER_PIN_FETCHER_H_

Powered by Google App Engine
This is Rietveld 408576698