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

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

Issue 166283002: "Privet" Printing reads DPI for PWG raster conversion from device capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « chrome/browser/local_discovery/DEPS ('k') | chrome/browser/local_discovery/privet_http_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Optional attributes for /submitdoc. Call before calling |Start()| 116 // Optional attributes for /submitdoc. Call before calling |Start()|
117 // |ticket| should be in CJT format. 117 // |ticket| should be in CJT format.
118 virtual void SetTicket(const std::string& ticket) = 0; 118 virtual void SetTicket(const std::string& ticket) = 0;
119 // Username and jobname are for display only. 119 // Username and jobname are for display only.
120 virtual void SetUsername(const std::string& username) = 0; 120 virtual void SetUsername(const std::string& username) = 0;
121 virtual void SetJobname(const std::string& jobname) = 0; 121 virtual void SetJobname(const std::string& jobname) = 0;
122 // If |offline| is true, we will indicate to the printer not to post the job 122 // If |offline| is true, we will indicate to the printer not to post the job
123 // to Google Cloud Print. 123 // to Google Cloud Print.
124 virtual void SetOffline(bool offline) = 0; 124 virtual void SetOffline(bool offline) = 0;
125 // Document page size. 125 // Document page size.
126 virtual void SetConversionSettings( 126 virtual void SetPageSize(const gfx::Size& page_size) = 0;
127 const printing::PdfRenderSettings& conversion_settings) = 0;
128 127
129 // For testing, inject an alternative PWG raster converter. 128 // For testing, inject an alternative PWG raster converter.
130 virtual void SetPWGRasterConverterForTesting( 129 virtual void SetPWGRasterConverterForTesting(
131 scoped_ptr<PWGRasterConverter> pwg_raster_converter) = 0; 130 scoped_ptr<PWGRasterConverter> pwg_raster_converter) = 0;
132 131
133 virtual PrivetHTTPClient* GetHTTPClient() = 0; 132 virtual PrivetHTTPClient* GetHTTPClient() = 0;
134 }; 133 };
135 134
136 // Privet HTTP client. Must not outlive the operations it creates. 135 // Privet HTTP client. Must not outlive the operations it creates.
137 class PrivetHTTPClient { 136 class PrivetHTTPClient {
(...skipping 13 matching lines...) Expand all
151 virtual scoped_ptr<PrivetJSONOperation> CreateStorageListOperation( 150 virtual scoped_ptr<PrivetJSONOperation> CreateStorageListOperation(
152 const std::string& path, 151 const std::string& path,
153 const PrivetJSONOperation::ResultCallback& callback) = 0; 152 const PrivetJSONOperation::ResultCallback& callback) = 0;
154 153
155 // A name for the HTTP client, e.g. the device name for the privet device. 154 // A name for the HTTP client, e.g. the device name for the privet device.
156 virtual const std::string& GetName() = 0; 155 virtual const std::string& GetName() = 0;
157 }; 156 };
158 157
159 } // namespace local_discovery 158 } // namespace local_discovery
160 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ 159 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/DEPS ('k') | chrome/browser/local_discovery/privet_http_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698