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

Side by Side Diff: net/base/ssl_config_service_defaults.h

Issue 3412016: FBTF: Move a bunch of code to the headers and remove includes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase + fixed windows issues locally Created 10 years, 3 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
« no previous file with comments | « net/base/ssl_config_service.cc ('k') | net/base/ssl_config_service_defaults.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) 2009 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 NET_BASE_SSL_CONFIG_SERVICE_DEFAULTS_H_ 5 #ifndef NET_BASE_SSL_CONFIG_SERVICE_DEFAULTS_H_
6 #define NET_BASE_SSL_CONFIG_SERVICE_DEFAULTS_H_ 6 #define NET_BASE_SSL_CONFIG_SERVICE_DEFAULTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/ssl_config_service.h" 9 #include "net/base/ssl_config_service.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 // This SSLConfigService always returns the default SSLConfig settings. It is 13 // This SSLConfigService always returns the default SSLConfig settings. It is
14 // mainly useful for unittests, or for platforms that do not have a native 14 // mainly useful for unittests, or for platforms that do not have a native
15 // implementation of SSLConfigService yet. 15 // implementation of SSLConfigService yet.
16 class SSLConfigServiceDefaults : public SSLConfigService { 16 class SSLConfigServiceDefaults : public SSLConfigService {
17 public: 17 public:
18 SSLConfigServiceDefaults() {} 18 SSLConfigServiceDefaults();
19 19
20 // Store default SSL config settings in |config|. 20 // Store default SSL config settings in |config|.
21 virtual void GetSSLConfig(SSLConfig* config) { 21 virtual void GetSSLConfig(SSLConfig* config);
22 *config = default_config_;
23 SetSSLConfigFlags(config);
24 }
25 22
26 private: 23 private:
27 virtual ~SSLConfigServiceDefaults() {} 24 virtual ~SSLConfigServiceDefaults();
28 25
29 // Default value of prefs. 26 // Default value of prefs.
30 const SSLConfig default_config_; 27 const SSLConfig default_config_;
31 28
32 DISALLOW_COPY_AND_ASSIGN(SSLConfigServiceDefaults); 29 DISALLOW_COPY_AND_ASSIGN(SSLConfigServiceDefaults);
33 }; 30 };
34 31
35 } // namespace net 32 } // namespace net
36 33
37 #endif // NET_BASE_SSL_CONFIG_SERVICE_DEFAULTS_H_ 34 #endif // NET_BASE_SSL_CONFIG_SERVICE_DEFAULTS_H_
OLDNEW
« no previous file with comments | « net/base/ssl_config_service.cc ('k') | net/base/ssl_config_service_defaults.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698