| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PRIVET_HTTP_IMPL_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 int range_start_; | 188 int range_start_; |
| 189 int range_end_; | 189 int range_end_; |
| 190 PrivetDataReadOperation::ResultCallback callback_; | 190 PrivetDataReadOperation::ResultCallback callback_; |
| 191 | 191 |
| 192 bool has_range_; | 192 bool has_range_; |
| 193 bool save_to_file_; | 193 bool save_to_file_; |
| 194 | 194 |
| 195 scoped_ptr<PrivetURLFetcher> url_fetcher_; | 195 scoped_ptr<PrivetURLFetcher> url_fetcher_; |
| 196 }; | 196 }; |
| 197 | 197 |
| 198 #if defined(ENABLE_FULL_PRINTING) | 198 #if defined(ENABLE_PRINT_PREVIEW) |
| 199 class PrivetLocalPrintOperationImpl | 199 class PrivetLocalPrintOperationImpl |
| 200 : public PrivetLocalPrintOperation, | 200 : public PrivetLocalPrintOperation, |
| 201 public PrivetURLFetcher::Delegate { | 201 public PrivetURLFetcher::Delegate { |
| 202 public: | 202 public: |
| 203 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, | 203 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, |
| 204 PrivetLocalPrintOperation::Delegate* delegate); | 204 PrivetLocalPrintOperation::Delegate* delegate); |
| 205 | 205 |
| 206 ~PrivetLocalPrintOperationImpl() override; | 206 ~PrivetLocalPrintOperationImpl() override; |
| 207 void Start() override; | 207 void Start() override; |
| 208 | 208 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 std::string jobid_; | 277 std::string jobid_; |
| 278 | 278 |
| 279 int invalid_job_retries_; | 279 int invalid_job_retries_; |
| 280 | 280 |
| 281 scoped_ptr<PrivetURLFetcher> url_fetcher_; | 281 scoped_ptr<PrivetURLFetcher> url_fetcher_; |
| 282 scoped_ptr<PrivetJSONOperation> info_operation_; | 282 scoped_ptr<PrivetJSONOperation> info_operation_; |
| 283 scoped_ptr<PWGRasterConverter> pwg_raster_converter_; | 283 scoped_ptr<PWGRasterConverter> pwg_raster_converter_; |
| 284 | 284 |
| 285 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_; | 285 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_; |
| 286 }; | 286 }; |
| 287 #endif // ENABLE_FULL_PRINTING | 287 #endif // ENABLE_PRINT_PREVIEW |
| 288 | 288 |
| 289 class PrivetHTTPClientImpl : public PrivetHTTPClient { | 289 class PrivetHTTPClientImpl : public PrivetHTTPClient { |
| 290 public: | 290 public: |
| 291 PrivetHTTPClientImpl( | 291 PrivetHTTPClientImpl( |
| 292 const std::string& name, | 292 const std::string& name, |
| 293 const net::HostPortPair& host_port, | 293 const net::HostPortPair& host_port, |
| 294 net::URLRequestContextGetter* request_context); | 294 net::URLRequestContextGetter* request_context); |
| 295 ~PrivetHTTPClientImpl() override; | 295 ~PrivetHTTPClientImpl() override; |
| 296 | 296 |
| 297 // PrivetHTTPClient implementation. | 297 // PrivetHTTPClient implementation. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 private: | 339 private: |
| 340 PrivetHTTPClient* info_client() { return info_client_.get(); } | 340 PrivetHTTPClient* info_client() { return info_client_.get(); } |
| 341 | 341 |
| 342 scoped_ptr<PrivetHTTPClient> info_client_; | 342 scoped_ptr<PrivetHTTPClient> info_client_; |
| 343 | 343 |
| 344 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); | 344 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); |
| 345 }; | 345 }; |
| 346 | 346 |
| 347 } // namespace local_discovery | 347 } // namespace local_discovery |
| 348 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ | 348 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
| OLD | NEW |