| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_SSL_SSL_POLICY_H_ | 5 #ifndef CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
| 6 #define CONTENT_BROWSER_SSL_SSL_POLICY_H_ | 6 #define CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // the decisions it reaches. | 29 // the decisions it reaches. |
| 30 // | 30 // |
| 31 class SSLPolicy { | 31 class SSLPolicy { |
| 32 public: | 32 public: |
| 33 explicit SSLPolicy(SSLPolicyBackend* backend); | 33 explicit SSLPolicy(SSLPolicyBackend* backend); |
| 34 | 34 |
| 35 // An error occurred with the certificate in an SSL connection. | 35 // An error occurred with the certificate in an SSL connection. |
| 36 void OnCertError(SSLCertErrorHandler* handler); | 36 void OnCertError(SSLCertErrorHandler* handler); |
| 37 | 37 |
| 38 void DidRunInsecureContent(NavigationEntryImpl* entry, | 38 void DidRunInsecureContent(NavigationEntryImpl* entry, |
| 39 const std::string& security_origin); | 39 const GURL& security_origin); |
| 40 | 40 |
| 41 // We have started a resource request with the given info. | 41 // We have started a resource request with the given info. |
| 42 void OnRequestStarted(SSLRequestInfo* info); | 42 void OnRequestStarted(SSLRequestInfo* info); |
| 43 | 43 |
| 44 // Update the SSL information in |entry| to match the current state. | 44 // Update the SSL information in |entry| to match the current state. |
| 45 // |web_contents| is the WebContents associated with this entry. | 45 // |web_contents| is the WebContents associated with this entry. |
| 46 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents); | 46 void UpdateEntry(NavigationEntryImpl* entry, WebContents* web_contents); |
| 47 | 47 |
| 48 SSLPolicyBackend* backend() const { return backend_; } | 48 SSLPolicyBackend* backend() const { return backend_; } |
| 49 | 49 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // The backend we use to enact our decisions. | 87 // The backend we use to enact our decisions. |
| 88 SSLPolicyBackend* backend_; | 88 SSLPolicyBackend* backend_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); | 90 DISALLOW_COPY_AND_ASSIGN(SSLPolicy); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace content | 93 } // namespace content |
| 94 | 94 |
| 95 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ | 95 #endif // CONTENT_BROWSER_SSL_SSL_POLICY_H_ |
| OLD | NEW |