| 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_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "google_apis/gaia/oauth2_token_service.h" | 11 #include "google_apis/gaia/oauth2_token_service.h" |
| 11 #include "net/url_request/url_fetcher.h" | 12 #include "net/url_request/url_fetcher.h" |
| 12 #include "net/url_request/url_request_context_getter.h" | 13 #include "net/url_request/url_request_context_getter.h" |
| 13 | 14 |
| 14 namespace local_discovery { | 15 namespace local_discovery { |
| 15 | 16 |
| 16 // API flow for communicating with cloud print and cloud devices. | 17 // API flow for communicating with cloud print and cloud devices. |
| 17 class GCDApiFlow { | 18 class GCDApiFlow { |
| 18 public: | 19 public: |
| 19 // TODO(noamsml): Better error model for this class. | 20 // TODO(noamsml): Better error model for this class. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 std::string GetOAuthScope() override; | 90 std::string GetOAuthScope() override; |
| 90 std::vector<std::string> GetExtraRequestHeaders() override; | 91 std::vector<std::string> GetExtraRequestHeaders() override; |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 DISALLOW_COPY_AND_ASSIGN(CloudPrintApiFlowRequest); | 94 DISALLOW_COPY_AND_ASSIGN(CloudPrintApiFlowRequest); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace local_discovery | 97 } // namespace local_discovery |
| 97 | 98 |
| 98 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_H_ | 99 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_GCD_API_FLOW_H_ |
| OLD | NEW |