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

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

Issue 72033002: Added the ability to set the upload file path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « no previous file | 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual void OnPrivetPrintingDone( 123 virtual void OnPrivetPrintingDone(
124 const PrivetLocalPrintOperation* print_operation) = 0; 124 const PrivetLocalPrintOperation* print_operation) = 0;
125 virtual void OnPrivetPrintingError( 125 virtual void OnPrivetPrintingError(
126 const PrivetLocalPrintOperation* print_operation, int http_code) = 0; 126 const PrivetLocalPrintOperation* print_operation, int http_code) = 0;
127 }; 127 };
128 128
129 virtual ~PrivetLocalPrintOperation() {} 129 virtual ~PrivetLocalPrintOperation() {}
130 130
131 virtual void Start() = 0; 131 virtual void Start() = 0;
132 132
133 // Should be called ONLY after |OnPrivetPrintingRequestPDF| or 133 // One of thsese should be called ONLY after |OnPrivetPrintingRequestPDF| or
134 // |OnPrivetPrintingRequestPWGRaster| are called on the delegate. Data should 134 // |OnPrivetPrintingRequestPWGRaster| are called on the delegate. Data should
135 // be in PDF or PWG format depending on what is requested by the local print 135 // be in PDF or PWG format depending on what is requested by the local print
136 // operation. 136 // operation.
137 virtual void SendData(const std::string& data) = 0; 137 virtual void SendData(const std::string& data) = 0;
138 virtual void SendDataFile(const base::FilePath& data) = 0;
138 139
139 // Optional attributes for /submitdoc. Call before calling |Start()| 140 // Optional attributes for /submitdoc. Call before calling |Start()|
140 // |ticket| should be in CJT format. 141 // |ticket| should be in CJT format.
141 virtual void SetTicket(const std::string& ticket) = 0; 142 virtual void SetTicket(const std::string& ticket) = 0;
142 // Username and jobname are for display only. 143 // Username and jobname are for display only.
143 virtual void SetUsername(const std::string& username) = 0; 144 virtual void SetUsername(const std::string& username) = 0;
144 virtual void SetJobname(const std::string& jobname) = 0; 145 virtual void SetJobname(const std::string& jobname) = 0;
145 // If |offline| is true, we will indicate to the printer not to post the job 146 // If |offline| is true, we will indicate to the printer not to post the job
146 // to Google Cloud Print. 147 // to Google Cloud Print.
147 virtual void SetOffline(bool offline) = 0; 148 virtual void SetOffline(bool offline) = 0;
(...skipping 16 matching lines...) Expand all
164 PrivetCapabilitiesOperation::Delegate* delegate) = 0; 165 PrivetCapabilitiesOperation::Delegate* delegate) = 0;
165 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation( 166 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation(
166 PrivetLocalPrintOperation::Delegate* delegate) = 0; 167 PrivetLocalPrintOperation::Delegate* delegate) = 0;
167 168
168 // A name for the HTTP client, e.g. the device name for the privet device. 169 // A name for the HTTP client, e.g. the device name for the privet device.
169 virtual const std::string& GetName() = 0; 170 virtual const std::string& GetName() = 0;
170 }; 171 };
171 172
172 } // namespace local_discovery 173 } // namespace local_discovery
173 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ 174 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698