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 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 Loading... | |
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 | |
66 // Called on the Glib thread to indicate now is the time for shutdown work | |
digit1
2012/10/19 10:32:46
Again, this file is not 100% specific to Linux, so
| |
67 // that must occur on the Glib thread. Its also one of the last safe times | |
68 // to post shutdown tasks to other browser threads. | |
69 virtual void StartTearDown() {} | |
64 }; | 70 }; |
65 | 71 |
66 } // namespace net | 72 } // namespace net |
67 | 73 |
68 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_H_ | 74 #endif // NET_PROXY_PROXY_CONFIG_SERVICE_H_ |
OLD | NEW |