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

Side by Side Diff: remoting/host/gcd_rest_client.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/host/fake_oauth_token_getter.cc ('k') | remoting/host/gcd_rest_client_unittest.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_GCD_REST_CLIENT_H_ 5 #ifndef REMOTING_HOST_GCD_REST_CLIENT_H_
6 #define REMOTING_HOST_GCD_REST_CLIENT_H_ 6 #define REMOTING_HOST_GCD_REST_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/time/clock.h" 13 #include "base/time/clock.h"
14 #include "net/url_request/url_fetcher_delegate.h" 14 #include "net/url_request/url_fetcher_delegate.h"
15 #include "remoting/base/oauth_token_getter.h"
15 #include "remoting/base/url_request_context_getter.h" 16 #include "remoting/base/url_request_context_getter.h"
16 #include "remoting/host/oauth_token_getter.h"
17 17
18 namespace base { 18 namespace base {
19 class DictionaryValue; 19 class DictionaryValue;
20 } // namespace base 20 } // namespace base
21 21
22 namespace remoting { 22 namespace remoting {
23 23
24 // A client for calls to the GCD REST API. 24 // A client for calls to the GCD REST API.
25 class GcdRestClient : public net::URLFetcherDelegate { 25 class GcdRestClient : public net::URLFetcherDelegate {
26 public: 26 public:
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 std::unique_ptr<base::Clock> clock_; 71 std::unique_ptr<base::Clock> clock_;
72 std::unique_ptr<net::URLFetcher> url_fetcher_; 72 std::unique_ptr<net::URLFetcher> url_fetcher_;
73 ResultCallback callback_; 73 ResultCallback callback_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(GcdRestClient); 75 DISALLOW_COPY_AND_ASSIGN(GcdRestClient);
76 }; 76 };
77 77
78 } // namespace remoting 78 } // namespace remoting
79 79
80 #endif // REMOTING_HOST_GCD_REST_CLIENT_H_ 80 #endif // REMOTING_HOST_GCD_REST_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/host/fake_oauth_token_getter.cc ('k') | remoting/host/gcd_rest_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698