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

Unified Diff: components/ssl_config/ssl_config_service_manager.h

Issue 1320533007: Componentize ssl_config_service_manager_pref.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve -Wnewline-eof mac_chromium bot failure Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ssl_config/ssl_config_prefs.cc ('k') | components/ssl_config/ssl_config_service_manager_pref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ssl_config/ssl_config_service_manager.h
diff --git a/chrome/browser/net/ssl_config_service_manager.h b/components/ssl_config/ssl_config_service_manager.h
similarity index 70%
rename from chrome/browser/net/ssl_config_service_manager.h
rename to components/ssl_config/ssl_config_service_manager.h
index 85185c6f425ea115e86062b073d70ddc4e81d0e8..30bc1c089590c6355212c7d1e7bf791608df9442 100644
--- a/chrome/browser/net/ssl_config_service_manager.h
+++ b/components/ssl_config/ssl_config_service_manager.h
@@ -2,8 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_
-#define CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_
+#ifndef COMPONENTS_SSL_CONFIG_SSL_CONFIG_SERVICE_MANAGER_H_
+#define COMPONENTS_SSL_CONFIG_SSL_CONFIG_SERVICE_MANAGER_H_
+
+#include "base/memory/ref_counted.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+}
namespace net {
class SSLConfigService;
@@ -12,6 +18,8 @@ class SSLConfigService;
class PrefService;
class PrefRegistrySimple;
+namespace ssl_config {
+
// An interface for creating SSLConfigService objects.
class SSLConfigServiceManager {
public:
@@ -19,7 +27,8 @@ class SSLConfigServiceManager {
// PrefService objects must be longer than that of the manager. Get SSL
// preferences from local_state object.
static SSLConfigServiceManager* CreateDefaultManager(
- PrefService* local_state);
+ PrefService* local_state,
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
static void RegisterPrefs(PrefRegistrySimple* registry);
@@ -32,4 +41,5 @@ class SSLConfigServiceManager {
virtual net::SSLConfigService* Get() = 0;
};
-#endif // CHROME_BROWSER_NET_SSL_CONFIG_SERVICE_MANAGER_H_
+} // namespace ssl_config
+#endif // COMPONENTS_SSL_CONFIG_SSL_CONFIG_SERVICE_MANAGER_H_
« no previous file with comments | « components/ssl_config/ssl_config_prefs.cc ('k') | components/ssl_config/ssl_config_service_manager_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698