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

Side by Side Diff: remoting/client/jni/chromoting_jni_instance.h

Issue 311983003: Third Party Authentication for Android Part I - TokenFetcherProxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing CR feedbacks Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_
6 #define REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_ 6 #define REMOTING_CLIENT_CHROMOTING_JNI_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "remoting/client/chromoting_client.h" 14 #include "remoting/client/chromoting_client.h"
15 #include "remoting/client/client_config.h" 15 #include "remoting/client/client_config.h"
16 #include "remoting/client/client_context.h" 16 #include "remoting/client/client_context.h"
17 #include "remoting/client/client_user_interface.h" 17 #include "remoting/client/client_user_interface.h"
18 #include "remoting/client/frame_consumer_proxy.h" 18 #include "remoting/client/frame_consumer_proxy.h"
19 #include "remoting/client/jni/jni_frame_consumer.h" 19 #include "remoting/client/jni/jni_frame_consumer.h"
20 #include "remoting/client/token_fetcher_proxy.h"
20 #include "remoting/jingle_glue/xmpp_signal_strategy.h" 21 #include "remoting/jingle_glue/xmpp_signal_strategy.h"
21 #include "remoting/protocol/clipboard_stub.h" 22 #include "remoting/protocol/clipboard_stub.h"
22 #include "remoting/protocol/connection_to_host.h" 23 #include "remoting/protocol/connection_to_host.h"
23 #include "remoting/protocol/cursor_shape_stub.h" 24 #include "remoting/protocol/cursor_shape_stub.h"
24 25
25 namespace remoting { 26 namespace remoting {
26 27
27 namespace protocol { 28 namespace protocol {
28 class ClipboardEvent; 29 class ClipboardEvent;
29 class CursorShapeInfo; 30 class CursorShapeInfo;
(...skipping 21 matching lines...) Expand all
51 const char* host_jid, 52 const char* host_jid,
52 const char* host_id, 53 const char* host_id,
53 const char* host_pubkey, 54 const char* host_pubkey,
54 const char* pairing_id, 55 const char* pairing_id,
55 const char* pairing_secret); 56 const char* pairing_secret);
56 57
57 // Terminates the current connection (if it hasn't already failed) and cleans 58 // Terminates the current connection (if it hasn't already failed) and cleans
58 // up. Must be called before destruction. 59 // up. Must be called before destruction.
59 void Cleanup(); 60 void Cleanup();
60 61
62 // Requests the android app to fetch a third-party token.
63 void FetchThirdPartyToken(
64 const GURL& token_url,
65 const std::string& client_id,
66 const std::string& scope,
67 const base::WeakPtr<TokenFetcherProxy> token_fetcher_proxy);
68
61 // Provides the user's PIN and resumes the host authentication attempt. Call 69 // Provides the user's PIN and resumes the host authentication attempt. Call
62 // on the UI thread once the user has finished entering this PIN into the UI, 70 // on the UI thread once the user has finished entering this PIN into the UI,
63 // but only after the UI has been asked to provide a PIN (via FetchSecret()). 71 // but only after the UI has been asked to provide a PIN (via FetchSecret()).
64 void ProvideSecret(const std::string& pin, bool create_pair, 72 void ProvideSecret(const std::string& pin, bool create_pair,
65 const std::string& device_name); 73 const std::string& device_name);
66 74
67 // Schedules a redraw on the display thread. May be called from any thread. 75 // Schedules a redraw on the display thread. May be called from any thread.
68 void RedrawDesktop(); 76 void RedrawDesktop();
69 77
70 // Moves the host's cursor to the specified coordinates, optionally with some 78 // Moves the host's cursor to the specified coordinates, optionally with some
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool stats_logging_enabled_; 181 bool stats_logging_enabled_;
174 182
175 friend class base::RefCountedThreadSafe<ChromotingJniInstance>; 183 friend class base::RefCountedThreadSafe<ChromotingJniInstance>;
176 184
177 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); 185 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance);
178 }; 186 };
179 187
180 } // namespace remoting 188 } // namespace remoting
181 189
182 #endif 190 #endif
OLDNEW
« no previous file with comments | « no previous file | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698