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

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

Issue 1417363004: Verify certificate of Privet v3 device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e750b1b05e23b26bfce66ce2b5dea2be6365a58e..2cbd5ceb489b1dbd15124d1c7db05bb116040797 100644
--- a/chrome/browser/local_discovery/privet_http.h
+++ b/chrome/browser/local_discovery/privet_http.h
@@ -62,6 +62,14 @@ class PrivetHTTPClient {
virtual void RefreshPrivetToken(
const PrivetURLFetcher::TokenCallback& token_callback) = 0;
+
+ // After this call HTTPS will be used. Only requests to the server with
+ // matching certificate will be allowed.
+ virtual void SwitchToHttps(
+ uint16_t port,
+ const net::SHA256HashValue& certificate_fingerprint) = 0;
+
+ virtual bool IsInHttpsMode() const = 0;
};
class PrivetDataReadOperation {
@@ -101,7 +109,7 @@ class PrivetRegisterOperation {
FAILURE_JSON_ERROR,
FAILURE_MALFORMED_RESPONSE,
FAILURE_TOKEN,
- FAILURE_RETRY
+ FAILURE_UNKNOWN,
};
class Delegate {
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_http_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698