| 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_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Entry point for SSLCertificateErrors. This function begins the process | 45 // Entry point for SSLCertificateErrors. This function begins the process |
| 46 // of resolving a certificate error during an SSL connection. SSLManager | 46 // of resolving a certificate error during an SSL connection. SSLManager |
| 47 // will adjust the security UI and either call |CancelSSLRequest| or | 47 // will adjust the security UI and either call |CancelSSLRequest| or |
| 48 // |ContinueSSLRequest| of |delegate|. | 48 // |ContinueSSLRequest| of |delegate|. |
| 49 // | 49 // |
| 50 // Called on the IO thread. | 50 // Called on the IO thread. |
| 51 static void OnSSLCertificateError( | 51 static void OnSSLCertificateError( |
| 52 const base::WeakPtr<SSLErrorHandler::Delegate>& delegate, | 52 const base::WeakPtr<SSLErrorHandler::Delegate>& delegate, |
| 53 ResourceType resource_type, | 53 ResourceType resource_type, |
| 54 const GURL& url, | 54 const GURL& url, |
| 55 int render_process_id, | 55 const ResourceRequestInfo::WebContentsGetterOnUI& web_contents_getter, |
| 56 int render_frame_id, | |
| 57 const net::SSLInfo& ssl_info, | 56 const net::SSLInfo& ssl_info, |
| 58 bool fatal); | 57 bool fatal); |
| 59 | 58 |
| 60 // Called when SSL state for a host or tab changes. | 59 // Called when SSL state for a host or tab changes. |
| 61 static void NotifySSLInternalStateChanged(BrowserContext* context); | 60 static void NotifySSLInternalStateChanged(BrowserContext* context); |
| 62 | 61 |
| 63 // Construct an SSLManager for the specified tab. | 62 // Construct an SSLManager for the specified tab. |
| 64 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used. | 63 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used. |
| 65 explicit SSLManager(NavigationControllerImpl* controller); | 64 explicit SSLManager(NavigationControllerImpl* controller); |
| 66 virtual ~SSLManager(); | 65 virtual ~SSLManager(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // The NavigationController that owns this SSLManager. We are responsible | 98 // The NavigationController that owns this SSLManager. We are responsible |
| 100 // for the security UI of this tab. | 99 // for the security UI of this tab. |
| 101 NavigationControllerImpl* controller_; | 100 NavigationControllerImpl* controller_; |
| 102 | 101 |
| 103 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 102 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace content | 105 } // namespace content |
| 107 | 106 |
| 108 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 107 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
| OLD | NEW |