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

Unified Diff: chrome/browser/local_discovery/privet_http.h

Issue 318283002: Added new GCD/Privet interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698