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

Side by Side Diff: chrome/browser/local_discovery/privet_http_impl.h

Issue 552703002: Fix compilation on Windows with enable_printing=2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Sep 8 17:26:04 PDT 2014 Created 6 years, 3 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
OLDNEW
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 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/local_discovery/privet_http.h" 15 #include "chrome/browser/local_discovery/privet_http.h"
15 #include "components/cloud_devices/common/cloud_device_description.h" 16 #include "components/cloud_devices/common/cloud_device_description.h"
16 #include "printing/pdf_render_settings.h" 17 #include "printing/pdf_render_settings.h"
17 18
18 namespace printing { 19 namespace printing {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 int range_start_; 187 int range_start_;
187 int range_end_; 188 int range_end_;
188 PrivetDataReadOperation::ResultCallback callback_; 189 PrivetDataReadOperation::ResultCallback callback_;
189 190
190 bool has_range_; 191 bool has_range_;
191 bool save_to_file_; 192 bool save_to_file_;
192 193
193 scoped_ptr<PrivetURLFetcher> url_fetcher_; 194 scoped_ptr<PrivetURLFetcher> url_fetcher_;
194 }; 195 };
195 196
197 #if defined(ENABLE_FULL_PRINTING)
196 class PrivetLocalPrintOperationImpl 198 class PrivetLocalPrintOperationImpl
197 : public PrivetLocalPrintOperation, 199 : public PrivetLocalPrintOperation,
198 public PrivetURLFetcher::Delegate { 200 public PrivetURLFetcher::Delegate {
199 public: 201 public:
200 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, 202 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client,
201 PrivetLocalPrintOperation::Delegate* delegate); 203 PrivetLocalPrintOperation::Delegate* delegate);
202 204
203 virtual ~PrivetLocalPrintOperationImpl(); 205 virtual ~PrivetLocalPrintOperationImpl();
204 virtual void Start() OVERRIDE; 206 virtual void Start() OVERRIDE;
205 207
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 std::string jobid_; 277 std::string jobid_;
276 278
277 int invalid_job_retries_; 279 int invalid_job_retries_;
278 280
279 scoped_ptr<PrivetURLFetcher> url_fetcher_; 281 scoped_ptr<PrivetURLFetcher> url_fetcher_;
280 scoped_ptr<PrivetJSONOperation> info_operation_; 282 scoped_ptr<PrivetJSONOperation> info_operation_;
281 scoped_ptr<PWGRasterConverter> pwg_raster_converter_; 283 scoped_ptr<PWGRasterConverter> pwg_raster_converter_;
282 284
283 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_; 285 base::WeakPtrFactory<PrivetLocalPrintOperationImpl> weak_factory_;
284 }; 286 };
287 #endif // ENABLE_FULL_PRINTING
285 288
286 class PrivetHTTPClientImpl : public PrivetHTTPClient { 289 class PrivetHTTPClientImpl : public PrivetHTTPClient {
287 public: 290 public:
288 PrivetHTTPClientImpl( 291 PrivetHTTPClientImpl(
289 const std::string& name, 292 const std::string& name,
290 const net::HostPortPair& host_port, 293 const net::HostPortPair& host_port,
291 net::URLRequestContextGetter* request_context); 294 net::URLRequestContextGetter* request_context);
292 virtual ~PrivetHTTPClientImpl(); 295 virtual ~PrivetHTTPClientImpl();
293 296
294 // PrivetHTTPClient implementation. 297 // PrivetHTTPClient implementation.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 private: 339 private:
337 PrivetHTTPClient* info_client() { return info_client_.get(); } 340 PrivetHTTPClient* info_client() { return info_client_.get(); }
338 341
339 scoped_ptr<PrivetHTTPClient> info_client_; 342 scoped_ptr<PrivetHTTPClient> info_client_;
340 343
341 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); 344 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl);
342 }; 345 };
343 346
344 } // namespace local_discovery 347 } // namespace local_discovery
345 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ 348 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698