| 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 <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "content/browser/ssl/ssl_error_handler.h" | 13 #include "content/browser/ssl/ssl_error_handler.h" |
| 14 #include "content/browser/ssl/ssl_policy_backend.h" | 14 #include "content/browser/ssl/ssl_policy_backend.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/public/browser/global_request_id.h" | 16 #include "content/public/browser/global_request_id.h" |
| 17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 18 #include "net/cert/cert_status_flags.h" | 18 #include "net/cert/cert_status_flags.h" |
| 19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // actually made. | 97 // actually made. |
| 98 void UpdateEntry(NavigationEntryImpl* entry); | 98 void UpdateEntry(NavigationEntryImpl* entry); |
| 99 | 99 |
| 100 // Notifies the WebContents that the SSL state changed. | 100 // Notifies the WebContents that the SSL state changed. |
| 101 void NotifyDidChangeVisibleSSLState(); | 101 void NotifyDidChangeVisibleSSLState(); |
| 102 | 102 |
| 103 // The backend for the SSLPolicy to actuate its decisions. | 103 // The backend for the SSLPolicy to actuate its decisions. |
| 104 SSLPolicyBackend backend_; | 104 SSLPolicyBackend backend_; |
| 105 | 105 |
| 106 // The SSLPolicy instance for this manager. | 106 // The SSLPolicy instance for this manager. |
| 107 scoped_ptr<SSLPolicy> policy_; | 107 std::unique_ptr<SSLPolicy> policy_; |
| 108 | 108 |
| 109 // The NavigationController that owns this SSLManager. We are responsible | 109 // The NavigationController that owns this SSLManager. We are responsible |
| 110 // for the security UI of this tab. | 110 // for the security UI of this tab. |
| 111 NavigationControllerImpl* controller_; | 111 NavigationControllerImpl* controller_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 113 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace content | 116 } // namespace content |
| 117 | 117 |
| 118 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 118 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
| OLD | NEW |