| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 public: | 44 public: |
| 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| with |id| as the first argument. | 48 // |ContinueSSLRequest| of |delegate| with |id| as the first argument. |
| 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 const GlobalRequestID& id, | 53 const GlobalRequestID& id, |
| 54 ResourceType::Type resource_type, | 54 ResourceType resource_type, |
| 55 const GURL& url, | 55 const GURL& url, |
| 56 int render_process_id, | 56 int render_process_id, |
| 57 int render_frame_id, | 57 int render_frame_id, |
| 58 const net::SSLInfo& ssl_info, | 58 const net::SSLInfo& ssl_info, |
| 59 bool fatal); | 59 bool fatal); |
| 60 | 60 |
| 61 // Called when SSL state for a host or tab changes. | 61 // Called when SSL state for a host or tab changes. |
| 62 static void NotifySSLInternalStateChanged(BrowserContext* context); | 62 static void NotifySSLInternalStateChanged(BrowserContext* context); |
| 63 | 63 |
| 64 // Construct an SSLManager for the specified tab. | 64 // Construct an SSLManager for the specified tab. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 95 // The NavigationController that owns this SSLManager. We are responsible | 95 // The NavigationController that owns this SSLManager. We are responsible |
| 96 // for the security UI of this tab. | 96 // for the security UI of this tab. |
| 97 NavigationControllerImpl* controller_; | 97 NavigationControllerImpl* controller_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 99 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace content | 102 } // namespace content |
| 103 | 103 |
| 104 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 104 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
| OLD | NEW |