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

Unified Diff: chrome/browser/local_discovery/privet_http_impl.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_impl.h
diff --git a/chrome/browser/local_discovery/privet_http_impl.h b/chrome/browser/local_discovery/privet_http_impl.h
index 2ef4776e830266c86b91f62c4d5828a8eff09fbc..fa7b3990cb08ce74e98f183557d9a74b63e212a8 100644
--- a/chrome/browser/local_discovery/privet_http_impl.h
+++ b/chrome/browser/local_discovery/privet_http_impl.h
@@ -346,5 +346,22 @@ class PrivetV1HTTPClientImpl : public PrivetV1HTTPClient {
DISALLOW_COPY_AND_ASSIGN(PrivetV1HTTPClientImpl);
};
+class PrivetV3HTTPClientImpl : public PrivetV3HTTPClient {
+ public:
+ explicit PrivetV3HTTPClientImpl(scoped_ptr<PrivetHTTPClient> info_client);
+ virtual ~PrivetV3HTTPClientImpl();
+
+ virtual const std::string& GetName() OVERRIDE;
+ virtual scoped_ptr<PrivetJSONOperation> CreateInfoOperation(
+ const PrivetJSONOperation::ResultCallback& callback) OVERRIDE;
+
+ private:
+ PrivetHTTPClient* info_client() { return info_client_.get(); }
+
+ scoped_ptr<PrivetHTTPClient> info_client_;
+
+ DISALLOW_COPY_AND_ASSIGN(PrivetV3HTTPClientImpl);
+};
+
} // namespace local_discovery
#endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_HTTP_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698