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

Side by Side Diff: content/browser/renderer_host/pepper/ssl_context_helper.h

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 years, 4 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_SSL_CONTEXT_HELPER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_SSL_CONTEXT_HELPER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "net/ssl/ssl_config_service.h"
12
13 namespace net {
14 class CertVerifier;
15 class TransportSecurityState;
16 }
17
18 namespace content {
19
20 class SSLContextHelper : public base::RefCounted<SSLContextHelper> {
21 public:
22 SSLContextHelper();
23 virtual ~SSLContextHelper();
yzshen1 2013/08/16 20:40:42 // private: // friend class base::RefCounte
ygorshenin1 2013/08/19 14:33:35 Done.
24
25 net::CertVerifier* GetCertVerifier();
26 net::TransportSecurityState* GetTransportSecurityState();
27 const net::SSLConfig& ssl_config() { return ssl_config_; }
28
29 private:
30 // This is lazily created. Users should use GetCertVerifier to retrieve it.
31 scoped_ptr<net::CertVerifier> cert_verifier_;
32 // This is lazily created. Users should use GetTransportSecurityState to
33 // retrieve it.
34 scoped_ptr<net::TransportSecurityState> transport_security_state_;
35
36 // The default SSL configuration settings are used, as opposed to Chrome's SSL
37 // settings.
38 net::SSLConfig ssl_config_;
39
40 DISALLOW_COPY_AND_ASSIGN(SSLContextHelper);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_SSL_CONTEXT_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698