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

Side by Side Diff: remoting/client/plugin/chromoting_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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PLUGIN_CHROMOTING_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 namespace remoting { 55 namespace remoting {
56 56
57 class ChromotingClient; 57 class ChromotingClient;
58 class ChromotingStats; 58 class ChromotingStats;
59 class ClientContext; 59 class ClientContext;
60 class DelegatingSignalStrategy; 60 class DelegatingSignalStrategy;
61 class FrameConsumer; 61 class FrameConsumer;
62 class FrameConsumerProxy; 62 class FrameConsumerProxy;
63 class PepperAudioPlayer; 63 class PepperAudioPlayer;
64 class PepperTokenFetcher; 64 class TokenFetcherProxy;
65 class PepperView; 65 class PepperView;
66 class RectangleUpdateDecoder; 66 class RectangleUpdateDecoder;
67 class SignalStrategy; 67 class SignalStrategy;
68 class VideoRenderer; 68 class VideoRenderer;
69 69
70 struct ClientConfig; 70 struct ClientConfig;
71 71
72 class ChromotingInstance : 72 class ChromotingInstance :
73 public ClientUserInterface, 73 public ClientUserInterface,
74 public MediaSourceVideoRenderer::Delegate, 74 public MediaSourceVideoRenderer::Delegate,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // processed. This must be of type LogMessageHandlerFunction defined in 171 // processed. This must be of type LogMessageHandlerFunction defined in
172 // base/logging.h. 172 // base/logging.h.
173 static bool LogToUI(int severity, const char* file, int line, 173 static bool LogToUI(int severity, const char* file, int line,
174 size_t message_start, const std::string& str); 174 size_t message_start, const std::string& str);
175 175
176 // Requests the webapp to fetch a third-party token. 176 // Requests the webapp to fetch a third-party token.
177 void FetchThirdPartyToken( 177 void FetchThirdPartyToken(
178 const GURL& token_url, 178 const GURL& token_url,
179 const std::string& host_public_key, 179 const std::string& host_public_key,
180 const std::string& scope, 180 const std::string& scope,
181 const base::WeakPtr<PepperTokenFetcher> pepper_token_fetcher); 181 const base::WeakPtr<TokenFetcherProxy> pepper_token_fetcher);
182 182
183 private: 183 private:
184 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); 184 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup);
185 185
186 // Used as the |FetchSecretCallback| for IT2Me (or Me2Me from old webapps). 186 // Used as the |FetchSecretCallback| for IT2Me (or Me2Me from old webapps).
187 // Immediately calls |secret_fetched_callback| with |shared_secret|. 187 // Immediately calls |secret_fetched_callback| with |shared_secret|.
188 static void FetchSecretFromString( 188 static void FetchSecretFromString(
189 const std::string& shared_secret, 189 const std::string& shared_secret,
190 bool pairing_supported, 190 bool pairing_supported,
191 const protocol::SecretFetchedCallback& secret_fetched_callback); 191 const protocol::SecretFetchedCallback& secret_fetched_callback);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 // PIN Fetcher. 288 // PIN Fetcher.
289 bool use_async_pin_dialog_; 289 bool use_async_pin_dialog_;
290 protocol::SecretFetchedCallback secret_fetched_callback_; 290 protocol::SecretFetchedCallback secret_fetched_callback_;
291 291
292 // Set to true if the webapp has requested to use MediaSource API for 292 // Set to true if the webapp has requested to use MediaSource API for
293 // rendering. In that case all the encoded video will be passed to the 293 // rendering. In that case all the encoded video will be passed to the
294 // webapp for decoding. 294 // webapp for decoding.
295 bool use_media_source_rendering_; 295 bool use_media_source_rendering_;
296 296
297 base::WeakPtr<PepperTokenFetcher> pepper_token_fetcher_; 297 base::WeakPtr<TokenFetcherProxy> token_fetcher_proxy_;
298 298
299 // Weak reference to this instance, used for global logging and task posting. 299 // Weak reference to this instance, used for global logging and task posting.
300 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 300 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
301 301
302 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 302 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
303 }; 303 };
304 304
305 } // namespace remoting 305 } // namespace remoting
306 306
307 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 307 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698