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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 const PrivetDataReadOperation::ResultCallback& callback) OVERRIDE; | 339 const PrivetDataReadOperation::ResultCallback& callback) OVERRIDE; |
340 | 340 |
341 private: | 341 private: |
342 PrivetHTTPClient* info_client() { return info_client_.get(); } | 342 PrivetHTTPClient* info_client() { return info_client_.get(); } |
343 | 343 |
344 scoped_ptr<PrivetHTTPClient> info_client_; | 344 scoped_ptr<PrivetHTTPClient> info_client_; |
345 | 345 |
346 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); | 346 DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl); |
347 }; | 347 }; |
348 | 348 |
| 349 class PrivetV3HTTPClientImpl : public PrivetV3HTTPClient { |
| 350 public: |
| 351 explicit PrivetV3HTTPClientImpl(scoped_ptr<PrivetHTTPClient> info_client); |
| 352 virtual ~PrivetV3HTTPClientImpl(); |
| 353 |
| 354 virtual const std::string& GetName() OVERRIDE; |
| 355 virtual scoped_ptr<PrivetJSONOperation> CreateInfoOperation( |
| 356 const PrivetJSONOperation::ResultCallback& callback) OVERRIDE; |
| 357 |
| 358 private: |
| 359 PrivetHTTPClient* info_client() { return info_client_.get(); } |
| 360 |
| 361 scoped_ptr<PrivetHTTPClient> info_client_; |
| 362 |
| 363 DISALLOW_COPY_AND_ASSIGN(PrivetV3HTTPClientImpl); |
| 364 }; |
| 365 |
349 } // namespace local_discovery | 366 } // namespace local_discovery |
350 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ | 367 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_ |
OLD | NEW |