OLD | NEW |
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 #include "chrome/browser/net/ssl_config_service_manager.h" | 4 #include "chrome/browser/net/ssl_config_service_manager.h" |
5 | 5 |
6 #include <algorithm> | 6 #include <algorithm> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "chrome/browser/prefs/pref_change_registrar.h" | 13 #include "chrome/browser/prefs/pref_change_registrar.h" |
14 #include "chrome/browser/prefs/pref_member.h" | 14 #include "chrome/browser/prefs/pref_member.h" |
15 #include "chrome/browser/prefs/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/notification_details.h" | 20 #include "content/public/browser/notification_details.h" |
21 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
22 #include "net/base/ssl_cipher_suite_names.h" | 22 #include "net/base/ssl_cipher_suite_names.h" |
23 #include "net/base/ssl_config_service.h" | 23 #include "net/base/ssl_config_service.h" |
24 | 24 |
| 25 using content::BrowserThread; |
| 26 |
25 namespace { | 27 namespace { |
26 | 28 |
27 // Converts a ListValue of StringValues into a vector of strings. Any Values | 29 // Converts a ListValue of StringValues into a vector of strings. Any Values |
28 // which cannot be converted will be skipped. | 30 // which cannot be converted will be skipped. |
29 std::vector<std::string> ListValueToStringVector(const ListValue* value) { | 31 std::vector<std::string> ListValueToStringVector(const ListValue* value) { |
30 std::vector<std::string> results; | 32 std::vector<std::string> results; |
31 results.reserve(value->GetSize()); | 33 results.reserve(value->GetSize()); |
32 std::string s; | 34 std::string s; |
33 for (ListValue::const_iterator it = value->begin(); it != value->end(); | 35 for (ListValue::const_iterator it = value->begin(); it != value->end(); |
34 ++it) { | 36 ++it) { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // static | 229 // static |
228 SSLConfigServiceManager* SSLConfigServiceManager::CreateDefaultManager( | 230 SSLConfigServiceManager* SSLConfigServiceManager::CreateDefaultManager( |
229 PrefService* local_state) { | 231 PrefService* local_state) { |
230 return new SSLConfigServiceManagerPref(local_state); | 232 return new SSLConfigServiceManagerPref(local_state); |
231 } | 233 } |
232 | 234 |
233 // static | 235 // static |
234 void SSLConfigServiceManager::RegisterPrefs(PrefService* prefs) { | 236 void SSLConfigServiceManager::RegisterPrefs(PrefService* prefs) { |
235 SSLConfigServiceManagerPref::RegisterPrefs(prefs); | 237 SSLConfigServiceManagerPref::RegisterPrefs(prefs); |
236 } | 238 } |
OLD | NEW |