OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_GCD_API_FLOW_IMPL_H_ |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_IMPL_H_ | 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_GCD_API_FLOW_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/local_discovery/gcd_api_flow.h" | 9 #include "chrome/browser/printing/cloud_print/gcd_api_flow.h" |
10 #include "net/url_request/url_fetcher.h" | 10 #include "net/url_request/url_fetcher.h" |
11 #include "net/url_request/url_fetcher_delegate.h" | 11 #include "net/url_request/url_fetcher_delegate.h" |
12 | 12 |
13 namespace local_discovery { | 13 namespace cloud_print { |
14 | 14 |
15 namespace { | 15 namespace { |
16 const char kCloudPrintOAuthHeaderFormat[] = "Authorization: Bearer %s"; | 16 const char kCloudPrintOAuthHeaderFormat[] = "Authorization: Bearer %s"; |
17 } | 17 } |
18 | 18 |
19 class GCDApiFlowImpl : public GCDApiFlow, | 19 class GCDApiFlowImpl : public GCDApiFlow, |
20 public net::URLFetcherDelegate, | 20 public net::URLFetcherDelegate, |
21 public OAuth2TokenService::Consumer { | 21 public OAuth2TokenService::Consumer { |
22 public: | 22 public: |
23 // Create an OAuth2-based confirmation. | 23 // Create an OAuth2-based confirmation. |
(...skipping 21 matching lines...) Expand all Loading... |
45 scoped_ptr<net::URLFetcher> url_fetcher_; | 45 scoped_ptr<net::URLFetcher> url_fetcher_; |
46 scoped_ptr<OAuth2TokenService::Request> oauth_request_; | 46 scoped_ptr<OAuth2TokenService::Request> oauth_request_; |
47 scoped_refptr<net::URLRequestContextGetter> request_context_; | 47 scoped_refptr<net::URLRequestContextGetter> request_context_; |
48 OAuth2TokenService* token_service_; | 48 OAuth2TokenService* token_service_; |
49 std::string account_id_; | 49 std::string account_id_; |
50 scoped_ptr<Request> request_; | 50 scoped_ptr<Request> request_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(GCDApiFlowImpl); | 52 DISALLOW_COPY_AND_ASSIGN(GCDApiFlowImpl); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace local_discovery | 55 } // namespace cloud_print |
56 | 56 |
57 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_IMPL_H_ | 57 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_GCD_API_FLOW_IMPL_H_ |
OLD | NEW |