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

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

Issue 1435303002: Temporarily add PrivetHttpClient::GetHost method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@context1
Patch Set: Created 5 years, 1 month 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 0786cbdc08858468211098b070b1b81fa151fb6e..f2d29d8b827ee25fd61b1a50ca8d8ae310e95474 100644
--- a/chrome/browser/local_discovery/privet_http.h
+++ b/chrome/browser/local_discovery/privet_http.h
@@ -63,6 +63,8 @@ class PrivetHTTPClient {
virtual void RefreshPrivetToken(
const PrivetURLFetcher::TokenCallback& token_callback) = 0;
+ // TODO(vitalybuka): Remove all below as part of crbug.com/551631
+ // PrivetV3Session should not need to use PrivetHTTPClient.
// After this call only HTTPS will be used. Only requests to the server with
// matching certificate will be allowed.
// Privet v3 devices MUST support HTTPS. Before communicating over HTTPS,
@@ -78,6 +80,8 @@ class PrivetHTTPClient {
const net::SHA256HashValue& certificate_fingerprint) = 0;
virtual bool IsInHttpsMode() const = 0;
+
+ virtual std::string GetHost() const = 0;
};
class PrivetDataReadOperation {

Powered by Google App Engine
This is Rietveld 408576698