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

Unified Diff: chrome/browser/ssl/security_state_model.h

Issue 1470813002: Add SecurityStateModelClient interface and implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delegate_ -> client_ 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/ssl/security_state_model.h
diff --git a/chrome/browser/ssl/security_state_model.h b/chrome/browser/ssl/security_state_model.h
index 8989efb676d4dc249f84dd745deebe3db9b9db4d..022435c8fdc9497fc9f953d7294eb041a978dc21 100644
--- a/chrome/browser/ssl/security_state_model.h
+++ b/chrome/browser/ssl/security_state_model.h
@@ -19,6 +19,7 @@ class WebContents;
} // namespace content
class Profile;
+class SecurityStateModelClient;
// SecurityStateModel provides high-level security information about a
// page or request. It is attached to a WebContents and will provide the
@@ -132,10 +133,13 @@ class SecurityStateModel
// Returns a SecurityInfo describing an individual request for the
// given |profile|.
- static void SecurityInfoForRequest(const GURL& url,
- const content::SSLStatus& ssl,
- Profile* profile,
- SecurityInfo* security_info);
+ static void SecurityInfoForRequest(
+ const GURL& url,
+ const content::SSLStatus& ssl,
+ Profile* profile,
+ const scoped_refptr<net::X509Certificate>& cert,
+ bool used_known_mitm_certificate,
+ SecurityInfo* security_info);
private:
explicit SecurityStateModel(content::WebContents* web_contents);
@@ -151,6 +155,11 @@ class SecurityStateModel
mutable GURL visible_url_;
mutable content::SSLStatus visible_ssl_status_;
+ // TODO(estark): The SecurityStateModel temporarily owns and
+ // instantiates this member, but it will soon be injected, once the
+ // model is compnentized. https://crbug.com/515071
+ scoped_ptr<SecurityStateModelClient> client_;
+
DISALLOW_COPY_AND_ASSIGN(SecurityStateModel);
};
« no previous file with comments | « chrome/browser/ssl/chrome_security_state_model_client.cc ('k') | chrome/browser/ssl/security_state_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698