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

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

Issue 7111013: Move most of the core SSL code from chrome to content. The UI code that's specific to Chrome (i.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « content/browser/ssl/ssl_host_state_unittest.cc ('k') | content/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_SSL_SSL_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_MANAGER_H_
6 #define CHROME_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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/string16.h" 13 #include "content/browser/ssl/ssl_policy_backend.h"
14 #include "chrome/browser/ssl/ssl_policy_backend.h"
15 #include "content/common/notification_observer.h" 14 #include "content/common/notification_observer.h"
16 #include "content/common/notification_registrar.h" 15 #include "content/common/notification_registrar.h"
17 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
18 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
19 18
20 class LoadFromMemoryCacheDetails; 19 class LoadFromMemoryCacheDetails;
21 class NavigationController; 20 class NavigationController;
22 class NavigationEntry; 21 class NavigationEntry;
23 class ProvisionalLoadDetails; 22 class ProvisionalLoadDetails;
24 class ResourceDispatcherHost; 23 class ResourceDispatcherHost;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 static std::string SerializeSecurityInfo(int cert_id, 58 static std::string SerializeSecurityInfo(int cert_id,
60 int cert_status, 59 int cert_status,
61 int security_bits, 60 int security_bits,
62 int connection_status); 61 int connection_status);
63 static bool DeserializeSecurityInfo(const std::string& state, 62 static bool DeserializeSecurityInfo(const std::string& state,
64 int* cert_id, 63 int* cert_id,
65 int* cert_status, 64 int* cert_status,
66 int* security_bits, 65 int* security_bits,
67 int* connection_status); 66 int* connection_status);
68 67
69 // Returns "<organization_name> [<country>]".
70 static string16 GetEVCertName(const net::X509Certificate& cert);
71
72 // Construct an SSLManager for the specified tab. 68 // Construct an SSLManager for the specified tab.
73 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used. 69 // If |delegate| is NULL, SSLPolicy::GetDefaultPolicy() is used.
74 explicit SSLManager(NavigationController* controller); 70 explicit SSLManager(NavigationController* controller);
75 virtual ~SSLManager(); 71 virtual ~SSLManager();
76 72
77 SSLPolicy* policy() { return policy_.get(); } 73 SSLPolicy* policy() { return policy_.get(); }
78 SSLPolicyBackend* backend() { return &backend_; } 74 SSLPolicyBackend* backend() { return &backend_; }
79 75
80 // The navigation controller associated with this SSLManager. The 76 // The navigation controller associated with this SSLManager. The
81 // NavigationController is guaranteed to outlive the SSLManager. 77 // NavigationController is guaranteed to outlive the SSLManager.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // The NavigationController that owns this SSLManager. We are responsible 118 // The NavigationController that owns this SSLManager. We are responsible
123 // for the security UI of this tab. 119 // for the security UI of this tab.
124 NavigationController* controller_; 120 NavigationController* controller_;
125 121
126 // Handles registering notifications with the NotificationService. 122 // Handles registering notifications with the NotificationService.
127 NotificationRegistrar registrar_; 123 NotificationRegistrar registrar_;
128 124
129 DISALLOW_COPY_AND_ASSIGN(SSLManager); 125 DISALLOW_COPY_AND_ASSIGN(SSLManager);
130 }; 126 };
131 127
132 #endif // CHROME_BROWSER_SSL_SSL_MANAGER_H_ 128 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_host_state_unittest.cc ('k') | content/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698