| 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 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 int range_start_; | 186 int range_start_; |
| 187 int range_end_; | 187 int range_end_; |
| 188 PrivetDataReadOperation::ResultCallback callback_; | 188 PrivetDataReadOperation::ResultCallback callback_; |
| 189 | 189 |
| 190 bool has_range_; | 190 bool has_range_; |
| 191 bool save_to_file_; | 191 bool save_to_file_; |
| 192 | 192 |
| 193 scoped_ptr<PrivetURLFetcher> url_fetcher_; | 193 scoped_ptr<PrivetURLFetcher> url_fetcher_; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 #if defined(ENABLE_FULL_PRINTING) |
| 196 class PrivetLocalPrintOperationImpl | 197 class PrivetLocalPrintOperationImpl |
| 197 : public PrivetLocalPrintOperation, | 198 : public PrivetLocalPrintOperation, |
| 198 public PrivetURLFetcher::Delegate { | 199 public PrivetURLFetcher::Delegate { |
| 199 public: | 200 public: |
| 200 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, | 201 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, |
| 201 PrivetLocalPrintOperation::Delegate* delegate); | 202 PrivetLocalPrintOperation::Delegate* delegate); |
| 202 | 203 |
| 203 virtual ~PrivetLocalPrintOperationImpl(); | 204 virtual ~PrivetLocalPrintOperationImpl(); |
| 204 virtual void Start() OVERRIDE; | 205 virtual void Start() OVERRIDE; |
| 205 | 206 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 std::string jobid_; | 276 std::string jobid_; |
| 276 | 277 |
| 277 int invalid_job_retries_; | 278 int invalid_job_retries_; |
| 278 | 279 |
| 279 scoped_ptr<PrivetURLFetcher> url_fetcher_; | 280 scoped_ptr<PrivetURLFetcher> url_fetcher_; |
| 280 scoped_ptr<PrivetJSONOperation> info_operation_; | 281 scoped_ptr<PrivetJSONOperation> info_operation_; |
| 281 scoped_ptr<PWGRasterConverter> pwg_raster_converter_; | 282 scoped_ptr<PWGRasterConverter> pwg_raster_converter_; |
| 282 | 283 |
| 283 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_; | 284 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_; |
| 284 }; | 285 }; |
| 286 #endif // ENABLE_FULL_PRINTING |
| 285 | 287 |
| 286 class PrivetHTTPClientImpl : public PrivetHTTPClient { | 288 class PrivetHTTPClientImpl : public PrivetHTTPClient { |
| 287 public: | 289 public: |
| 288 PrivetHTTPClientImpl( | 290 PrivetHTTPClientImpl( |
| 289 const std::string& name, | 291 const std::string& name, |
| 290 const net::HostPortPair& host_port, | 292 const net::HostPortPair& host_port, |
| 291 net::URLRequestContextGetter* request_context); | 293 net::URLRequestContextGetter* request_context); |
| 292 virtual ~PrivetHTTPClientImpl(); | 294 virtual ~PrivetHTTPClientImpl(); |
| 293 | 295 |
| 294 // PrivetHTTPClient implementation. | 296 // PrivetHTTPClient implementation. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 private: | 338 private: |
| 337 PrivetHTTPClient* info_client() { return info_client_.get(); } | 339 PrivetHTTPClient* info_client() { return info_client_.get(); } |
| 338 | 340 |
| 339 scoped_ptr<PrivetHTTPClient> info_client_; | 341 scoped_ptr<PrivetHTTPClient> info_client_; |
| 340 | 342 |
| 341 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); | 343 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); |
| 342 }; | 344 }; |
| 343 | 345 |
| 344 } // namespace local_discovery | 346 } // namespace local_discovery |
| 345 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ | 347 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
| OLD | NEW |