| Index: chrome/browser/local_discovery/privet_http.h
|
| diff --git a/chrome/browser/local_discovery/privet_http.h b/chrome/browser/local_discovery/privet_http.h
|
| index e0814669bd49c871cf6b984bd43ee4207e91de1c..bba71aeb2e05be92f1e8478310c4c7a27cee2d85 100644
|
| --- a/chrome/browser/local_discovery/privet_http.h
|
| +++ b/chrome/browser/local_discovery/privet_http.h
|
| @@ -185,12 +185,12 @@ class PrivetV1HTTPClient {
|
| public:
|
| virtual ~PrivetV1HTTPClient() {}
|
|
|
| - // A name for the HTTP client, e.g. the device name for the privet device.
|
| - virtual const std::string& GetName() = 0;
|
| -
|
| static scoped_ptr<PrivetV1HTTPClient> CreateDefault(
|
| scoped_ptr<PrivetHTTPClient> info_client);
|
|
|
| + // A name for the HTTP client, e.g. the device name for the privet device.
|
| + virtual const std::string& GetName() = 0;
|
| +
|
| // Creates operation to query basic information about local device.
|
| virtual scoped_ptr<PrivetJSONOperation> CreateInfoOperation(
|
| const PrivetJSONOperation::ResultCallback& callback) = 0;
|
| @@ -219,5 +219,21 @@ class PrivetV1HTTPClient {
|
| const PrivetDataReadOperation::ResultCallback& callback) = 0;
|
| };
|
|
|
| +// Privet HTTP client. Must outlive the operations it creates.
|
| +class PrivetV3HTTPClient {
|
| + public:
|
| + virtual ~PrivetV3HTTPClient() {}
|
| +
|
| + static scoped_ptr<PrivetV3HTTPClient> CreateDefault(
|
| + scoped_ptr<PrivetHTTPClient> info_client);
|
| +
|
| + // A name for the HTTP client, e.g. the device name for the privet device.
|
| + virtual const std::string& GetName() = 0;
|
| +
|
| + // Creates operation to query basic information about local device.
|
| + virtual scoped_ptr<PrivetJSONOperation> CreateInfoOperation(
|
| + const PrivetJSONOperation::ResultCallback& callback) = 0;
|
| +};
|
| +
|
| } // namespace local_discovery
|
| #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_H_
|
|
|