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

Side by Side Diff: net/http/http_server_properties_manager.h

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 5 #ifndef NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 6 #define NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Deletes all data. Works asynchronously, but if a |completion| callback is 72 // Deletes all data. Works asynchronously, but if a |completion| callback is
73 // provided, it will be fired on the pref thread when everything is done. 73 // provided, it will be fired on the pref thread when everything is done.
74 void Clear(const base::Closure& completion); 74 void Clear(const base::Closure& completion);
75 75
76 // ---------------------------------- 76 // ----------------------------------
77 // HttpServerProperties methods: 77 // HttpServerProperties methods:
78 // ---------------------------------- 78 // ----------------------------------
79 79
80 // Gets a weak pointer for this object. 80 // Gets a weak pointer for this object.
81 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() OVERRIDE; 81 virtual base::WeakPtr<HttpServerProperties> GetWeakPtr() override;
82 82
83 // Deletes all data. Works asynchronously. 83 // Deletes all data. Works asynchronously.
84 virtual void Clear() OVERRIDE; 84 virtual void Clear() override;
85 85
86 // Returns true if |server| supports SPDY. Should only be called from IO 86 // Returns true if |server| supports SPDY. Should only be called from IO
87 // thread. 87 // thread.
88 virtual bool SupportsSpdy(const HostPortPair& server) OVERRIDE; 88 virtual bool SupportsSpdy(const HostPortPair& server) override;
89 89
90 // Add |server| as the SPDY server which supports SPDY protocol into the 90 // Add |server| as the SPDY server which supports SPDY protocol into the
91 // persisitent store. Should only be called from IO thread. 91 // persisitent store. Should only be called from IO thread.
92 virtual void SetSupportsSpdy(const HostPortPair& server, 92 virtual void SetSupportsSpdy(const HostPortPair& server,
93 bool support_spdy) OVERRIDE; 93 bool support_spdy) override;
94 94
95 // Returns true if |server| has an Alternate-Protocol header. 95 // Returns true if |server| has an Alternate-Protocol header.
96 virtual bool HasAlternateProtocol(const HostPortPair& server) OVERRIDE; 96 virtual bool HasAlternateProtocol(const HostPortPair& server) override;
97 97
98 // Returns the Alternate-Protocol and port for |server|. 98 // Returns the Alternate-Protocol and port for |server|.
99 // HasAlternateProtocol(server) must be true. 99 // HasAlternateProtocol(server) must be true.
100 virtual AlternateProtocolInfo GetAlternateProtocol( 100 virtual AlternateProtocolInfo GetAlternateProtocol(
101 const HostPortPair& server) OVERRIDE; 101 const HostPortPair& server) override;
102 102
103 // Sets the Alternate-Protocol for |server|. 103 // Sets the Alternate-Protocol for |server|.
104 virtual void SetAlternateProtocol( 104 virtual void SetAlternateProtocol(
105 const HostPortPair& server, 105 const HostPortPair& server,
106 uint16 alternate_port, 106 uint16 alternate_port,
107 AlternateProtocol alternate_protocol, 107 AlternateProtocol alternate_protocol,
108 double alternate_probability) OVERRIDE; 108 double alternate_probability) override;
109 109
110 // Sets the Alternate-Protocol for |server| to be BROKEN. 110 // Sets the Alternate-Protocol for |server| to be BROKEN.
111 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) OVERRIDE; 111 virtual void SetBrokenAlternateProtocol(const HostPortPair& server) override;
112 112
113 // Returns true if Alternate-Protocol for |server| was recently BROKEN. 113 // Returns true if Alternate-Protocol for |server| was recently BROKEN.
114 virtual bool WasAlternateProtocolRecentlyBroken( 114 virtual bool WasAlternateProtocolRecentlyBroken(
115 const HostPortPair& server) OVERRIDE; 115 const HostPortPair& server) override;
116 116
117 // Confirms that Alternate-Protocol for |server| is working. 117 // Confirms that Alternate-Protocol for |server| is working.
118 virtual void ConfirmAlternateProtocol(const HostPortPair& server) OVERRIDE; 118 virtual void ConfirmAlternateProtocol(const HostPortPair& server) override;
119 119
120 // Clears the Alternate-Protocol for |server|. 120 // Clears the Alternate-Protocol for |server|.
121 virtual void ClearAlternateProtocol(const HostPortPair& server) OVERRIDE; 121 virtual void ClearAlternateProtocol(const HostPortPair& server) override;
122 122
123 // Returns all Alternate-Protocol mappings. 123 // Returns all Alternate-Protocol mappings.
124 virtual const AlternateProtocolMap& alternate_protocol_map() const OVERRIDE; 124 virtual const AlternateProtocolMap& alternate_protocol_map() const override;
125 125
126 virtual void SetAlternateProtocolExperiment( 126 virtual void SetAlternateProtocolExperiment(
127 AlternateProtocolExperiment experiment) OVERRIDE; 127 AlternateProtocolExperiment experiment) override;
128 128
129 virtual void SetAlternateProtocolProbabilityThreshold( 129 virtual void SetAlternateProtocolProbabilityThreshold(
130 double threshold) OVERRIDE; 130 double threshold) override;
131 131
132 virtual AlternateProtocolExperiment GetAlternateProtocolExperiment() 132 virtual AlternateProtocolExperiment GetAlternateProtocolExperiment()
133 const OVERRIDE; 133 const override;
134 134
135 // Gets a reference to the SettingsMap stored for a host. 135 // Gets a reference to the SettingsMap stored for a host.
136 // If no settings are stored, returns an empty SettingsMap. 136 // If no settings are stored, returns an empty SettingsMap.
137 virtual const SettingsMap& GetSpdySettings( 137 virtual const SettingsMap& GetSpdySettings(
138 const HostPortPair& host_port_pair) OVERRIDE; 138 const HostPortPair& host_port_pair) override;
139 139
140 // Saves an individual SPDY setting for a host. Returns true if SPDY setting 140 // Saves an individual SPDY setting for a host. Returns true if SPDY setting
141 // is to be persisted. 141 // is to be persisted.
142 virtual bool SetSpdySetting(const HostPortPair& host_port_pair, 142 virtual bool SetSpdySetting(const HostPortPair& host_port_pair,
143 SpdySettingsIds id, 143 SpdySettingsIds id,
144 SpdySettingsFlags flags, 144 SpdySettingsFlags flags,
145 uint32 value) OVERRIDE; 145 uint32 value) override;
146 146
147 // Clears all SPDY settings for a host. 147 // Clears all SPDY settings for a host.
148 virtual void ClearSpdySettings(const HostPortPair& host_port_pair) OVERRIDE; 148 virtual void ClearSpdySettings(const HostPortPair& host_port_pair) override;
149 149
150 // Clears all SPDY settings for all hosts. 150 // Clears all SPDY settings for all hosts.
151 virtual void ClearAllSpdySettings() OVERRIDE; 151 virtual void ClearAllSpdySettings() override;
152 152
153 // Returns all SPDY persistent settings. 153 // Returns all SPDY persistent settings.
154 virtual const SpdySettingsMap& spdy_settings_map() const OVERRIDE; 154 virtual const SpdySettingsMap& spdy_settings_map() const override;
155 155
156 // Methods for SupportsQuic. 156 // Methods for SupportsQuic.
157 virtual SupportsQuic GetSupportsQuic( 157 virtual SupportsQuic GetSupportsQuic(
158 const HostPortPair& host_port_pair) const OVERRIDE; 158 const HostPortPair& host_port_pair) const override;
159 159
160 virtual void SetSupportsQuic(const HostPortPair& host_port_pair, 160 virtual void SetSupportsQuic(const HostPortPair& host_port_pair,
161 bool used_quic, 161 bool used_quic,
162 const std::string& address) OVERRIDE; 162 const std::string& address) override;
163 163
164 virtual const SupportsQuicMap& supports_quic_map() const OVERRIDE; 164 virtual const SupportsQuicMap& supports_quic_map() const override;
165 165
166 virtual void SetServerNetworkStats(const HostPortPair& host_port_pair, 166 virtual void SetServerNetworkStats(const HostPortPair& host_port_pair,
167 NetworkStats stats) OVERRIDE; 167 NetworkStats stats) override;
168 168
169 virtual const NetworkStats* GetServerNetworkStats( 169 virtual const NetworkStats* GetServerNetworkStats(
170 const HostPortPair& host_port_pair) const OVERRIDE; 170 const HostPortPair& host_port_pair) const override;
171 171
172 protected: 172 protected:
173 // -------------------- 173 // --------------------
174 // SPDY related methods 174 // SPDY related methods
175 175
176 // These are used to delay updating of the cached data in 176 // These are used to delay updating of the cached data in
177 // |http_server_properties_impl_| while the preferences are changing, and 177 // |http_server_properties_impl_| while the preferences are changing, and
178 // execute only one update per simultaneous prefs changes. 178 // execute only one update per simultaneous prefs changes.
179 void ScheduleUpdateCacheOnPrefThread(); 179 void ScheduleUpdateCacheOnPrefThread();
180 180
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Used to get |weak_ptr_| to self on the network thread. 266 // Used to get |weak_ptr_| to self on the network thread.
267 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > 267 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> >
268 network_weak_ptr_factory_; 268 network_weak_ptr_factory_;
269 269
270 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 270 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
271 }; 271 };
272 272
273 } // namespace net 273 } // namespace net
274 274
275 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_ 275 #endif // NET_HTTP_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW
« no previous file with comments | « net/http/http_server_properties_impl.h ('k') | net/http/http_server_properties_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698