| 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 | 4 |
| 5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| 6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // testing. | 166 // testing. |
| 167 void UpdatePrefsOnUI( | 167 void UpdatePrefsOnUI( |
| 168 base::ListValue* spdy_server_list, | 168 base::ListValue* spdy_server_list, |
| 169 net::SpdySettingsMap* spdy_settings_map, | 169 net::SpdySettingsMap* spdy_settings_map, |
| 170 net::AlternateProtocolMap* alternate_protocol_map); | 170 net::AlternateProtocolMap* alternate_protocol_map); |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 // Callback for preference changes. | 173 // Callback for preference changes. |
| 174 virtual void Observe(int type, | 174 virtual void Observe(int type, |
| 175 const content::NotificationSource& source, | 175 const content::NotificationSource& source, |
| 176 const content::NotificationDetails& details); | 176 const content::NotificationDetails& details) OVERRIDE; |
| 177 | 177 |
| 178 // --------- | 178 // --------- |
| 179 // UI thread | 179 // UI thread |
| 180 // --------- | 180 // --------- |
| 181 | 181 |
| 182 // Used to get |weak_ptr_| to self on the UI thread. | 182 // Used to get |weak_ptr_| to self on the UI thread. |
| 183 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > | 183 scoped_ptr<base::WeakPtrFactory<HttpServerPropertiesManager> > |
| 184 ui_weak_ptr_factory_; | 184 ui_weak_ptr_factory_; |
| 185 | 185 |
| 186 base::WeakPtr<HttpServerPropertiesManager> ui_weak_ptr_; | 186 base::WeakPtr<HttpServerPropertiesManager> ui_weak_ptr_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 203 io_prefs_update_timer_; | 203 io_prefs_update_timer_; |
| 204 | 204 |
| 205 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; | 205 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; |
| 206 | 206 |
| 207 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); | 207 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace chrome_browser_net | 210 } // namespace chrome_browser_net |
| 211 | 211 |
| 212 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ | 212 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ |
| OLD | NEW |