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_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" |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 class PrivetLocalPrintOperationImpl | 196 class PrivetLocalPrintOperationImpl |
197 : public PrivetLocalPrintOperation, | 197 : public PrivetLocalPrintOperation, |
198 public PrivetURLFetcher::Delegate { | 198 public PrivetURLFetcher::Delegate { |
199 public: | 199 public: |
200 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, | 200 PrivetLocalPrintOperationImpl(PrivetHTTPClient* privet_client, |
201 PrivetLocalPrintOperation::Delegate* delegate); | 201 PrivetLocalPrintOperation::Delegate* delegate); |
202 | 202 |
203 virtual ~PrivetLocalPrintOperationImpl(); | 203 virtual ~PrivetLocalPrintOperationImpl(); |
204 virtual void Start() OVERRIDE; | 204 virtual void Start() OVERRIDE; |
205 | 205 |
206 virtual void SetData(base::RefCountedBytes* data) OVERRIDE; | 206 virtual void SetData( |
| 207 const scoped_refptr<base::RefCountedBytes>& data) OVERRIDE; |
207 | 208 |
208 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; | 209 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; |
209 | 210 |
210 virtual void SetTicket(const std::string& ticket) OVERRIDE; | 211 virtual void SetTicket(const std::string& ticket) OVERRIDE; |
211 | 212 |
212 virtual void SetUsername(const std::string& user) OVERRIDE; | 213 virtual void SetUsername(const std::string& user) OVERRIDE; |
213 | 214 |
214 virtual void SetJobname(const std::string& jobname) OVERRIDE; | 215 virtual void SetJobname(const std::string& jobname) OVERRIDE; |
215 | 216 |
216 virtual void SetOffline(bool offline) OVERRIDE; | 217 virtual void SetOffline(bool offline) OVERRIDE; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 private: | 342 private: |
342 PrivetHTTPClient* info_client() { return info_client_.get(); } | 343 PrivetHTTPClient* info_client() { return info_client_.get(); } |
343 | 344 |
344 scoped_ptr<PrivetHTTPClient> info_client_; | 345 scoped_ptr<PrivetHTTPClient> info_client_; |
345 | 346 |
346 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); | 347 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); |
347 }; | 348 }; |
348 | 349 |
349 } // namespace local_discovery | 350 } // namespace local_discovery |
350 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ | 351 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
OLD | NEW |