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

Side by Side Diff: chrome/browser/io_thread.h

Issue 6526059: Plumb through NetworkChangeNotifier::IsOffline() to WebKit, enabling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Appease the C++ type system Created 9 years, 9 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
« no previous file with comments | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/io_thread.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) 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_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. 138 // to the IOThread. IOThread owns them all, despite not using scoped_ptr.
139 // This is because the destructor of IOThread runs on the wrong thread. All 139 // This is because the destructor of IOThread runs on the wrong thread. All
140 // member variables should be deleted in CleanUp(). 140 // member variables should be deleted in CleanUp().
141 141
142 // These member variables are initialized in Init() and do not change for the 142 // These member variables are initialized in Init() and do not change for the
143 // lifetime of the IO thread. 143 // lifetime of the IO thread.
144 144
145 Globals* globals_; 145 Globals* globals_;
146 146
147 // Observer that logs network changes to the ChromeNetLog. 147 // Observer that logs network changes to the ChromeNetLog.
148 scoped_ptr<net::NetworkChangeNotifier::Observer> network_change_observer_; 148 scoped_ptr<net::NetworkChangeNotifier::IPAddressObserver>
149 network_change_observer_;
149 150
150 // Store HTTP Auth-related policies in this thread. 151 // Store HTTP Auth-related policies in this thread.
151 std::string auth_schemes_; 152 std::string auth_schemes_;
152 bool negotiate_disable_cname_lookup_; 153 bool negotiate_disable_cname_lookup_;
153 bool negotiate_enable_port_; 154 bool negotiate_enable_port_;
154 std::string auth_server_whitelist_; 155 std::string auth_server_whitelist_;
155 std::string auth_delegate_whitelist_; 156 std::string auth_delegate_whitelist_;
156 std::string gssapi_library_name_; 157 std::string gssapi_library_name_;
157 158
158 // These member variables are initialized by a task posted to the IO thread, 159 // These member variables are initialized by a task posted to the IO thread,
159 // which gets posted by calling certain member functions of IOThread. 160 // which gets posted by calling certain member functions of IOThread.
160 161
161 // Note: we user explicit pointers rather than smart pointers to be more 162 // Note: we user explicit pointers rather than smart pointers to be more
162 // explicit about destruction order, and ensure that there is no chance that 163 // explicit about destruction order, and ensure that there is no chance that
163 // these observers would be used accidentally after we have begun to tear 164 // these observers would be used accidentally after we have begun to tear
164 // down. 165 // down.
165 chrome_browser_net::ConnectInterceptor* speculative_interceptor_; 166 chrome_browser_net::ConnectInterceptor* speculative_interceptor_;
166 chrome_browser_net::Predictor* predictor_; 167 chrome_browser_net::Predictor* predictor_;
167 168
168 // Keeps track of all live ChromeURLRequestContextGetters, so the 169 // Keeps track of all live ChromeURLRequestContextGetters, so the
169 // ChromeURLRequestContexts can be released during 170 // ChromeURLRequestContexts can be released during
170 // IOThread::CleanUpAfterMessageLoopDestruction(). 171 // IOThread::CleanUpAfterMessageLoopDestruction().
171 std::list<ChromeURLRequestContextGetter*> url_request_context_getters_; 172 std::list<ChromeURLRequestContextGetter*> url_request_context_getters_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(IOThread); 174 DISALLOW_COPY_AND_ASSIGN(IOThread);
174 }; 175 };
175 176
176 #endif // CHROME_BROWSER_IO_THREAD_H_ 177 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/intranet_redirect_detector.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698