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

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

Issue 211843004: Tunnel PWGRasterConfig capability to the ticket and to the utility process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "chrome/browser/local_discovery/privet_http.h" 14 #include "chrome/browser/local_discovery/privet_http.h"
15 #include "components/cloud_devices/cloud_device_description.h" 15 #include "components/cloud_devices/cloud_device_description.h"
16 #include "printing/pdf_render_settings.h" 16 #include "printing/pdf_render_settings.h"
17 17
18 namespace printing {
19 struct BitmapTransformSettings;
20 };
21
18 namespace local_discovery { 22 namespace local_discovery {
19 23
20 class PrivetHTTPClientImpl; 24 class PrivetHTTPClientImpl;
21 25
22 class PrivetInfoOperationImpl : public PrivetJSONOperation, 26 class PrivetInfoOperationImpl : public PrivetJSONOperation,
23 public PrivetURLFetcher::Delegate { 27 public PrivetURLFetcher::Delegate {
24 public: 28 public:
25 PrivetInfoOperationImpl(PrivetHTTPClientImpl* privet_client, 29 PrivetInfoOperationImpl(PrivetHTTPClientImpl* privet_client,
26 const PrivetJSONOperation::ResultCallback& callback); 30 const PrivetJSONOperation::ResultCallback& callback);
27 virtual ~PrivetInfoOperationImpl(); 31 virtual ~PrivetInfoOperationImpl();
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 244
241 void StartConvertToPWG(); 245 void StartConvertToPWG();
242 void StartPrinting(); 246 void StartPrinting();
243 247
244 void OnPrivetInfoDone(const base::DictionaryValue* value); 248 void OnPrivetInfoDone(const base::DictionaryValue* value);
245 void OnSubmitdocResponse(bool has_error, 249 void OnSubmitdocResponse(bool has_error,
246 const base::DictionaryValue* value); 250 const base::DictionaryValue* value);
247 void OnCreatejobResponse(bool has_error, 251 void OnCreatejobResponse(bool has_error,
248 const base::DictionaryValue* value); 252 const base::DictionaryValue* value);
249 void OnPWGRasterConverted(bool success, const base::FilePath& pwg_file_path); 253 void OnPWGRasterConverted(bool success, const base::FilePath& pwg_file_path);
254 void FillBitmapTransformSettings(
255 printing::BitmapTransformSettings* transfrom_settings);
250 256
251 PrivetHTTPClientImpl* privet_client_; 257 PrivetHTTPClientImpl* privet_client_;
252 PrivetLocalPrintOperation::Delegate* delegate_; 258 PrivetLocalPrintOperation::Delegate* delegate_;
253 259
254 ResponseCallback current_response_; 260 ResponseCallback current_response_;
255 261
256 cloud_devices::CloudDeviceDescription ticket_; 262 cloud_devices::CloudDeviceDescription ticket_;
257 cloud_devices::CloudDeviceDescription capabilities_; 263 cloud_devices::CloudDeviceDescription capabilities_;
258 264
259 scoped_refptr<base::RefCountedBytes> data_; 265 scoped_refptr<base::RefCountedBytes> data_;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 std::string name_; 333 std::string name_;
328 scoped_refptr<net::URLRequestContextGetter> request_context_; 334 scoped_refptr<net::URLRequestContextGetter> request_context_;
329 net::HostPortPair host_port_; 335 net::HostPortPair host_port_;
330 336
331 scoped_ptr<PrivetJSONOperation> info_operation_; 337 scoped_ptr<PrivetJSONOperation> info_operation_;
332 TokenCallbackVector token_callbacks_; 338 TokenCallbackVector token_callbacks_;
333 }; 339 };
334 340
335 } // namespace local_discovery 341 } // namespace local_discovery
336 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ 342 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | chrome/browser/local_discovery/privet_http_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698