Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1085)

Side by Side Diff: content/browser/ssl/ssl_manager.h

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static void OnSSLCertificateError(ResourceDispatcherHost* resource_dispatcher, 53 static void OnSSLCertificateError(ResourceDispatcherHost* resource_dispatcher,
54 net::URLRequest* request, 54 net::URLRequest* request,
55 const net::SSLInfo& ssl_info, 55 const net::SSLInfo& ssl_info,
56 bool fatal); 56 bool fatal);
57 57
58 // Called when SSL state for a host or tab changes. Broadcasts the 58 // Called when SSL state for a host or tab changes. Broadcasts the
59 // SSL_INTERNAL_STATE_CHANGED notification. 59 // SSL_INTERNAL_STATE_CHANGED notification.
60 static void NotifySSLInternalStateChanged( 60 static void NotifySSLInternalStateChanged(
61 NavigationControllerImpl* controller); 61 NavigationControllerImpl* controller);
62 62
63 // Convenience methods for serializing/deserializing the security info.
64 static std::string SerializeSecurityInfo(int cert_id,
65 net::CertStatus cert_status,
66 int security_bits,
67 int connection_status);
68 CONTENT_EXPORT static bool DeserializeSecurityInfo(
69 const std::string& state,
70 int* cert_id,
71 net::CertStatus* cert_status,
72 int* security_bits,
73 int* connection_status);
74
75 // Construct an SSLManager for the specified tab. 63 // Construct an SSLManager for the specified tab.
76 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used. 64 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used.
77 explicit SSLManager(NavigationControllerImpl* controller); 65 explicit SSLManager(NavigationControllerImpl* controller);
78 virtual ~SSLManager(); 66 virtual ~SSLManager();
79 67
80 SSLPolicy* policy() { return policy_.get(); } 68 SSLPolicy* policy() { return policy_.get(); }
81 SSLPolicyBackend* backend() { return &backend_; } 69 SSLPolicyBackend* backend() { return &backend_; }
82 70
83 // The navigation controller associated with this SSLManager. The 71 // The navigation controller associated with this SSLManager. The
84 // NavigationController is guaranteed to outlive the SSLManager. 72 // NavigationController is guaranteed to outlive the SSLManager.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // for the security UI of this tab. 114 // for the security UI of this tab.
127 NavigationControllerImpl* controller_; 115 NavigationControllerImpl* controller_;
128 116
129 // Handles registering notifications with the NotificationService. 117 // Handles registering notifications with the NotificationService.
130 content::NotificationRegistrar registrar_; 118 content::NotificationRegistrar registrar_;
131 119
132 DISALLOW_COPY_AND_ASSIGN(SSLManager); 120 DISALLOW_COPY_AND_ASSIGN(SSLManager);
133 }; 121 };
134 122
135 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ 123 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698