| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void DidCommitProvisionalLoad(const LoadCommittedDetails& details); | 75 void DidCommitProvisionalLoad(const LoadCommittedDetails& details); |
| 76 void DidLoadFromMemoryCache(const LoadFromMemoryCacheDetails& details); | 76 void DidLoadFromMemoryCache(const LoadFromMemoryCacheDetails& details); |
| 77 void DidStartResourceResponse(const ResourceRequestDetails& details); | 77 void DidStartResourceResponse(const ResourceRequestDetails& details); |
| 78 void DidReceiveResourceRedirect(const ResourceRedirectDetails& details); | 78 void DidReceiveResourceRedirect(const ResourceRedirectDetails& details); |
| 79 | 79 |
| 80 // Insecure content entry point. | 80 // Insecure content entry point. |
| 81 void DidDisplayInsecureContent(); | 81 void DidDisplayInsecureContent(); |
| 82 void DidRunInsecureContent(const std::string& security_origin); | 82 void DidRunInsecureContent(const std::string& security_origin); |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 // Update the NavigationEntry with our current state. | 85 // Updates the NavigationEntry with our current state. If the update |
| 86 void UpdateEntry(NavigationEntryImpl* entry); | 86 // changed the state, then this function notifies the appropriate |
| 87 // WebContents of the change and returns true. Returns false |
| 88 // otherwise. |
| 89 bool UpdateEntry(NavigationEntryImpl* entry); |
| 90 |
| 91 // Notifies the WebContents that the SSL state changed. |
| 92 void NotifyDidChangeVisibleSSLState(); |
| 87 | 93 |
| 88 // The backend for the SSLPolicy to actuate its decisions. | 94 // The backend for the SSLPolicy to actuate its decisions. |
| 89 SSLPolicyBackend backend_; | 95 SSLPolicyBackend backend_; |
| 90 | 96 |
| 91 // The SSLPolicy instance for this manager. | 97 // The SSLPolicy instance for this manager. |
| 92 scoped_ptr<SSLPolicy> policy_; | 98 scoped_ptr<SSLPolicy> policy_; |
| 93 | 99 |
| 94 // The NavigationController that owns this SSLManager. We are responsible | 100 // The NavigationController that owns this SSLManager. We are responsible |
| 95 // for the security UI of this tab. | 101 // for the security UI of this tab. |
| 96 NavigationControllerImpl* controller_; | 102 NavigationControllerImpl* controller_; |
| 97 | 103 |
| 98 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 104 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
| 99 }; | 105 }; |
| 100 | 106 |
| 101 } // namespace content | 107 } // namespace content |
| 102 | 108 |
| 103 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 109 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
| OLD | NEW |