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

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

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_SSL_SSL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SSL_SSL_MANAGER_H_
6 #define CHROME_BROWSER_SSL_SSL_MANAGER_H_ 6 #define CHROME_BROWSER_SSL_SSL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 net::X509Certificate* cert); 52 net::X509Certificate* cert);
53 53
54 // Called when SSL state for a host or tab changes. Broadcasts the 54 // Called when SSL state for a host or tab changes. Broadcasts the
55 // SSL_INTERNAL_STATE_CHANGED notification. 55 // SSL_INTERNAL_STATE_CHANGED notification.
56 static void NotifySSLInternalStateChanged(); 56 static void NotifySSLInternalStateChanged();
57 57
58 // Convenience methods for serializing/deserializing the security info. 58 // Convenience methods for serializing/deserializing the security info.
59 static std::string SerializeSecurityInfo(int cert_id, 59 static std::string SerializeSecurityInfo(int cert_id,
60 int cert_status, 60 int cert_status,
61 int security_bits, 61 int security_bits,
62 int connection_status); 62 int connection_status,
63 string16 tls_username);
63 static bool DeserializeSecurityInfo(const std::string& state, 64 static bool DeserializeSecurityInfo(const std::string& state,
64 int* cert_id, 65 int* cert_id,
65 int* cert_status, 66 int* cert_status,
66 int* security_bits, 67 int* security_bits,
67 int* connection_status); 68 int* connection_status,
69 string16* tls_username);
68 70
69 // Returns "<organization_name> [<country>]". 71 // Returns "<organization_name> [<country>]".
70 static string16 GetEVCertName(const net::X509Certificate& cert); 72 static string16 GetEVCertName(const net::X509Certificate& cert);
71 73
72 // Construct an SSLManager for the specified tab. 74 // Construct an SSLManager for the specified tab.
73 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used. 75 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used.
74 explicit SSLManager(NavigationController* controller); 76 explicit SSLManager(NavigationController* controller);
75 ~SSLManager(); 77 ~SSLManager();
76 78
77 SSLPolicy* policy() { return policy_.get(); } 79 SSLPolicy* policy() { return policy_.get(); }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // for the security UI of this tab. 125 // for the security UI of this tab.
124 NavigationController* controller_; 126 NavigationController* controller_;
125 127
126 // Handles registering notifications with the NotificationService. 128 // Handles registering notifications with the NotificationService.
127 NotificationRegistrar registrar_; 129 NotificationRegistrar registrar_;
128 130
129 DISALLOW_COPY_AND_ASSIGN(SSLManager); 131 DISALLOW_COPY_AND_ASSIGN(SSLManager);
130 }; 132 };
131 133
132 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ 134 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_request_details.cc ('k') | chrome/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698