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

Side by Side Diff: net/proxy/proxy_config_service.h

Issue 10912132: Move ProxyConfigService construction onto the IO thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra blank line Created 8 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 | Annotate | Revision Log
OLDNEW
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 NET_PROXY_PROXY_CONFIG_SERVICE_H_ 5 #ifndef NET_PROXY_PROXY_CONFIG_SERVICE_H_
6 #define NET_PROXY_PROXY_CONFIG_SERVICE_H_ 6 #define NET_PROXY_PROXY_CONFIG_SERVICE_H_
7 7
8 #include "net/base/net_export.h" 8 #include "net/base/net_export.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) = 0; 54 virtual ConfigAvailability GetLatestProxyConfig(ProxyConfig* config) = 0;
55 55
56 // ProxyService will call this periodically during periods of activity. 56 // ProxyService will call this periodically during periods of activity.
57 // It can be used as a signal for polling-based implementations. 57 // It can be used as a signal for polling-based implementations.
58 // 58 //
59 // Note that this is purely used as an optimization -- polling 59 // Note that this is purely used as an optimization -- polling
60 // implementations could simply set a global timer that goes off every 60 // implementations could simply set a global timer that goes off every
61 // X seconds at which point they check for changes. However that has 61 // X seconds at which point they check for changes. However that has
62 // the disadvantage of doing continuous work even during idle periods. 62 // the disadvantage of doing continuous work even during idle periods.
63 virtual void OnLazyPoll() {} 63 virtual void OnLazyPoll() {}
64
65 // Called on the main thread to indicate now is the time for shutdown work
66 // that must occur on the main thread. Its also one of the last safe times
67 // to post shutdown tasks to other browser threads.
Ryan Sleevi 2012/10/19 17:56:43 nit: comment layering violation within net/ "to ot
68 virtual void StartTearDown() {}
64 }; 69 };
65 70
66 } // namespace net 71 } // namespace net
67 72
68 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_H_ 73 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698