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

Unified Diff: remoting/client/plugin/chromoting_instance.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: Changed Pin-related objects to callbacks 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/chromoting_instance.h
diff --git a/remoting/client/plugin/chromoting_instance.h b/remoting/client/plugin/chromoting_instance.h
index 9765f9688b5449bfa7d752524c18d663df1c7c5d..806559396ae0a57d32b47c16e32d7762908a327b 100644
--- a/remoting/client/plugin/chromoting_instance.h
+++ b/remoting/client/plugin/chromoting_instance.h
@@ -39,6 +39,7 @@
#include "remoting/protocol/cursor_shape_stub.h"
#include "remoting/protocol/input_event_tracker.h"
#include "remoting/protocol/mouse_input_filter.h"
+#include "remoting/protocol/negotiating_authenticator.h"
namespace base {
class DictionaryValue;
@@ -56,6 +57,7 @@ class ChromotingStats;
class ClientContext;
class FrameConsumerProxy;
class PepperAudioPlayer;
+class PepperPinFetcher;
class PepperView;
class PepperXmppProxy;
class RectangleUpdateDecoder;
@@ -133,6 +135,12 @@ class ChromotingInstance :
void NotifyClientResolution(int width, int height, int x_dpi, int y_dpi);
void PauseVideo(bool pause);
void PauseAudio(bool pause);
+ void FetchPinFromDialog(
+ const protocol::PinFetchedCallback& pin_fetched_callback);
+ static void FetchPinFromString(
+ const std::string& shared_secret,
+ const protocol::PinFetchedCallback& pin_fetched_callback);
+ void OnPinFetched(const std::string& shared_secret);
// Return statistics record by ChromotingClient.
// If no connection is currently active then NULL will be returned.
@@ -210,6 +218,10 @@ class ChromotingInstance :
// connection.
scoped_refptr<PepperXmppProxy> xmpp_proxy_;
+ // PIN Fetcher.
+ bool use_async_pin_dialog_;
+ protocol::PinFetchedCallback pin_fetched_callback_;
+
base::WeakPtrFactory<ChromotingInstance> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);

Powered by Google App Engine
This is Rietveld 408576698