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_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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 PrivetRegisterOperation::Delegate* delegate) = 0; | 202 PrivetRegisterOperation::Delegate* delegate) = 0; |
203 | 203 |
204 // Creates operation to query capabilities of local printer. | 204 // Creates operation to query capabilities of local printer. |
205 virtual scoped_ptr<PrivetJSONOperation> CreateCapabilitiesOperation( | 205 virtual scoped_ptr<PrivetJSONOperation> CreateCapabilitiesOperation( |
206 const PrivetJSONOperation::ResultCallback& callback) = 0; | 206 const PrivetJSONOperation::ResultCallback& callback) = 0; |
207 | 207 |
208 // Creates operation to submit print job to local printer. | 208 // Creates operation to submit print job to local printer. |
209 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation( | 209 virtual scoped_ptr<PrivetLocalPrintOperation> CreateLocalPrintOperation( |
210 PrivetLocalPrintOperation::Delegate* delegate) = 0; | 210 PrivetLocalPrintOperation::Delegate* delegate) = 0; |
211 | 211 |
212 // Creates operation to list files on local Privet storage. | |
213 virtual scoped_ptr<PrivetJSONOperation> CreateStorageListOperation( | |
214 const std::string& path, | |
215 const PrivetJSONOperation::ResultCallback& callback) = 0; | |
216 | |
217 // Creates operation to read data from local Privet storage. | |
218 virtual scoped_ptr<PrivetDataReadOperation> CreateStorageReadOperation( | |
219 const std::string& path, | |
220 const PrivetDataReadOperation::ResultCallback& callback) = 0; | |
221 }; | 212 }; |
222 | 213 |
223 } // namespace local_discovery | 214 } // namespace local_discovery |
224 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ | 215 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_ |
OLD | NEW |