Index: remoting/client/jni/token_fetcher.h |
diff --git a/remoting/client/jni/token_fetcher.h b/remoting/client/jni/token_fetcher.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..603c66549f144163a0fad22928babc0db2e49d35 |
--- /dev/null |
+++ b/remoting/client/jni/token_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_JNI_TOKEN_FETCHER_H_ |
+#define REMOTING_CLIENT_JNI_TOKEN_FETCHER_H_ |
+ |
+#include <string> |
+ |
+#include "remoting/protocol/third_party_client_authenticator.h" |
+ |
+namespace remoting { |
+ |
+// Basic TokenFetcher implementation for client implementations that use JNI. |
Wez
2013/07/09 17:34:47
Basic -> Dummy
Wez
2013/07/09 17:34:47
As for AudioPlayer, do we actually need this? Can'
solb
2013/07/10 00:01:19
Done.
|
+class TokenFetcher |
+ : public protocol::ThirdPartyClientAuthenticator::TokenFetcher { |
+ public: |
+ TokenFetcher(); |
+ |
+ // |
+ // ThirdPartyClientAuthenticator::TokenFetcher implementation: |
+ // |
Wez
2013/07/09 17:34:47
See AudioPlayer re comment format/
|
+ virtual void FetchThirdPartyToken( |
+ const GURL& token_url, |
+ const std::string& scope, |
+ const TokenFetchedCallback& token_fetched_callback) OVERRIDE; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(TokenFetcher); |
+}; |
+ |
+} // namespace remoting |
+ |
+#endif |