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

Unified Diff: chrome/browser/local_discovery/privet_http_impl.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 | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1814aff6869727ea88f7ce9846b63096715d3b07..a027564a217c4dfd76bdb89da0d36ad01fd3cb35 100644
--- a/chrome/browser/local_discovery/privet_http_impl.h
+++ b/chrome/browser/local_discovery/privet_http_impl.h
@@ -241,6 +241,10 @@ class PrivetHTTPClientImpl : public PrivetHTTPClient {
const std::string& name,
const net::HostPortPair& host_port,
net::URLRequestContextGetter* request_context);
+ PrivetHTTPClientImpl(
+ const std::string& name,
+ const net::HostPortPair& host_port,
+ const scoped_refptr<base::SingleThreadTaskRunner>& net_task_runner);
~PrivetHTTPClientImpl() override;
// PrivetHTTPClient implementation.
@@ -253,6 +257,10 @@ class PrivetHTTPClientImpl : public PrivetHTTPClient {
PrivetURLFetcher::Delegate* delegate) override;
void RefreshPrivetToken(
const PrivetURLFetcher::TokenCallback& token_callback) override;
+ void SwitchToHttps(
+ uint16_t port,
+ const net::SHA256HashValue& certificate_fingerprint) override;
+ bool IsInHttpsMode() const override;
private:
typedef std::vector<PrivetURLFetcher::TokenCallback> TokenCallbackVector;
@@ -260,7 +268,8 @@ class PrivetHTTPClientImpl : public PrivetHTTPClient {
void OnPrivetInfoDone(const base::DictionaryValue* value);
std::string name_;
- scoped_refptr<net::URLRequestContextGetter> request_context_;
+ scoped_refptr<net::URLRequestContextGetter> context_getter_;
+ bool use_https_ = false;
net::HostPortPair host_port_;
scoped_ptr<PrivetJSONOperation> info_operation_;
« no previous file with comments | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698