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

Side by Side Diff: net/ssl/ssl_config_service.h

Issue 1247063004: Unwind fastradio experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/ssl/ssl_config.cc ('k') | net/ssl/ssl_config_service.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SSL_SSL_CONFIG_SERVICE_H_ 5 #ifndef NET_SSL_SSL_CONFIG_SERVICE_H_
6 #define NET_SSL_SSL_CONFIG_SERVICE_H_ 6 #define NET_SSL_SSL_CONFIG_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 #include "net/cert/crl_set.h" 13 #include "net/cert/crl_set.h"
14 #include "net/cert/ct_ev_whitelist.h" 14 #include "net/cert/ct_ev_whitelist.h"
15 #include "net/ssl/ssl_config.h" 15 #include "net/ssl/ssl_config.h"
16 16
17 class GURL;
18
19 namespace net { 17 namespace net {
20 18
21 // The interface for retrieving the SSL configuration. This interface 19 // The interface for retrieving the SSL configuration. This interface
22 // does not cover setting the SSL configuration, as on some systems, the 20 // does not cover setting the SSL configuration, as on some systems, the
23 // SSLConfigService objects may not have direct access to the configuration, or 21 // SSLConfigService objects may not have direct access to the configuration, or
24 // live longer than the configuration preferences. 22 // live longer than the configuration preferences.
25 class NET_EXPORT SSLConfigService 23 class NET_EXPORT SSLConfigService
26 : public base::RefCountedThreadSafe<SSLConfigService> { 24 : public base::RefCountedThreadSafe<SSLConfigService> {
27 public: 25 public:
28 // Observer is notified when SSL config settings have changed. 26 // Observer is notified when SSL config settings have changed.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Add an observer of this service. 59 // Add an observer of this service.
62 void AddObserver(Observer* observer); 60 void AddObserver(Observer* observer);
63 61
64 // Remove an observer of this service. 62 // Remove an observer of this service.
65 void RemoveObserver(Observer* observer); 63 void RemoveObserver(Observer* observer);
66 64
67 // Calls the OnSSLConfigChanged method of registered observers. Should only be 65 // Calls the OnSSLConfigChanged method of registered observers. Should only be
68 // called on the IO thread. 66 // called on the IO thread.
69 void NotifySSLConfigChange(); 67 void NotifySSLConfigChange();
70 68
71 // Returns true if the |url| should use fastradio padding.
72 virtual bool SupportsFastradioPadding(const GURL& url);
73
74 protected: 69 protected:
75 friend class base::RefCountedThreadSafe<SSLConfigService>; 70 friend class base::RefCountedThreadSafe<SSLConfigService>;
76 71
77 virtual ~SSLConfigService(); 72 virtual ~SSLConfigService();
78 73
79 // Process before/after config update. 74 // Process before/after config update.
80 void ProcessConfigUpdate(const SSLConfig& orig_config, 75 void ProcessConfigUpdate(const SSLConfig& orig_config,
81 const SSLConfig& new_config); 76 const SSLConfig& new_config);
82 77
83 private: 78 private:
84 base::ObserverList<Observer> observer_list_; 79 base::ObserverList<Observer> observer_list_;
85 }; 80 };
86 81
87 } // namespace net 82 } // namespace net
88 83
89 #endif // NET_SSL_SSL_CONFIG_SERVICE_H_ 84 #endif // NET_SSL_SSL_CONFIG_SERVICE_H_
OLDNEW
« no previous file with comments | « net/ssl/ssl_config.cc ('k') | net/ssl/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698