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

Side by Side Diff: remoting/base/fake_oauth_token_getter.h

Issue 2661153003: Moving oauth code from host to base to allow code sharing between host and client. (Closed)
Patch Set: Merge branch 'master' into auth_token Created 3 years, 10 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
« no previous file with comments | « remoting/base/DEPS ('k') | remoting/base/fake_oauth_token_getter.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_HOST_FAKE_OAUTH_TOKEN_GETTER_H_ 5 #ifndef REMOTING_BASE_FAKE_OAUTH_TOKEN_GETTER_H_
6 #define REMOTING_HOST_FAKE_OAUTH_TOKEN_GETTER_H_ 6 #define REMOTING_BASE_FAKE_OAUTH_TOKEN_GETTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "remoting/host/oauth_token_getter.h" 11 #include "remoting/base/oauth_token_getter.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 class FakeOAuthTokenGetter : public OAuthTokenGetter { 15 class FakeOAuthTokenGetter : public OAuthTokenGetter {
16 public: 16 public:
17 FakeOAuthTokenGetter(Status status, 17 FakeOAuthTokenGetter(Status status,
18 const std::string& user_email, 18 const std::string& user_email,
19 const std::string& access_token); 19 const std::string& access_token);
20 ~FakeOAuthTokenGetter() override; 20 ~FakeOAuthTokenGetter() override;
21 21
22 // OAuthTokenGetter interface. 22 // OAuthTokenGetter interface.
23 void CallWithToken(const TokenCallback& on_access_token) override; 23 void CallWithToken(const TokenCallback& on_access_token) override;
24 void InvalidateCache() override; 24 void InvalidateCache() override;
25 25
26 private: 26 private:
27 Status status_; 27 Status status_;
28 std::string user_email_; 28 std::string user_email_;
29 std::string access_token_; 29 std::string access_token_;
30 }; 30 };
31 31
32 } // namespace remoting 32 } // namespace remoting
33 33
34 #endif // REMOTING_HOST_FAKE_OAUTH_TOKEN_GETTER_H_ 34 #endif // REMOTING_BASE_FAKE_OAUTH_TOKEN_GETTER_H_
OLDNEW
« no previous file with comments | « remoting/base/DEPS ('k') | remoting/base/fake_oauth_token_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698