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

Unified Diff: remoting/client/plugin/pepper_token_fetcher.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_token_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_token_fetcher.h
diff --git a/remoting/client/plugin/pepper_token_fetcher.h b/remoting/client/plugin/pepper_token_fetcher.h
deleted file mode 100644
index b914f51c2b52e816570d254fd1c1a6bd805e13f8..0000000000000000000000000000000000000000
--- a/remoting/client/plugin/pepper_token_fetcher.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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_TOKEN_FETCHER_H_
-#define REMOTING_CLIENT_PLUGIN_PEPPER_TOKEN_FETCHER_H_
-
-#include "base/callback.h"
-#include "base/memory/weak_ptr.h"
-#include "remoting/protocol/third_party_client_authenticator.h"
-
-namespace remoting {
-
-class ChromotingInstance;
-
-class PepperTokenFetcher
- : public protocol::ThirdPartyClientAuthenticator::TokenFetcher {
- public:
- PepperTokenFetcher(base::WeakPtr<ChromotingInstance> plugin,
- const std::string& host_public_key);
- virtual ~PepperTokenFetcher();
-
- // protocol::TokenClientAuthenticator::TokenFetcher interface.
- virtual void FetchThirdPartyToken(
- const GURL& token_url,
- const std::string& scope,
- const TokenFetchedCallback& token_fetched_callback) OVERRIDE;
-
- // Called by ChromotingInstance when the webapp finishes fetching the token.
- void OnTokenFetched(const std::string& token,
- const std::string& shared_secret);
-
- private:
- base::WeakPtr<ChromotingInstance> plugin_;
- std::string host_public_key_;
- TokenFetchedCallback token_fetched_callback_;
- base::WeakPtrFactory<PepperTokenFetcher> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(PepperTokenFetcher);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_CLIENT_PLUGIN_PEPPER_TOKEN_FETCHER_H_
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698