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

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

Issue 2030193004: Add a policy for disabling the stripping of PAC URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 // Returns the callback for updating data use prefs. 232 // Returns the callback for updating data use prefs.
233 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder(); 233 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder();
234 234
235 // Registers the |observer| for new STH notifications. 235 // Registers the |observer| for new STH notifications.
236 void RegisterSTHObserver(net::ct::STHObserver* observer); 236 void RegisterSTHObserver(net::ct::STHObserver* observer);
237 237
238 // Un-registers the |observer|. 238 // Un-registers the |observer|.
239 void UnregisterSTHObserver(net::ct::STHObserver* observer); 239 void UnregisterSTHObserver(net::ct::STHObserver* observer);
240 240
241 // Returns true if the indicated proxy resolution features are enabled.
mmenke 2016/06/03 15:59:22 Do we document these features anywhere in the sour
eroman 2016/06/03 16:49:03 Done.
242 bool WpadQuickCheckEnabled() const;
243 bool PacHttpsUrlStrippingEnabled() const;
244
241 private: 245 private:
242 // Provide SystemURLRequestContextGetter with access to 246 // Provide SystemURLRequestContextGetter with access to
243 // InitSystemRequestContext(). 247 // InitSystemRequestContext().
244 friend class SystemURLRequestContextGetter; 248 friend class SystemURLRequestContextGetter;
245 249
246 friend class test::IOThreadPeer; 250 friend class test::IOThreadPeer;
247 251
248 // BrowserThreadDelegate implementation, runs on the IO thread. 252 // BrowserThreadDelegate implementation, runs on the IO thread.
249 // This handles initialization and destruction of state that must 253 // This handles initialization and destruction of state that must
250 // live on the IO thread. 254 // live on the IO thread.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_; 325 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_;
322 326
323 std::unique_ptr<certificate_transparency::TreeStateTracker> ct_tree_tracker_; 327 std::unique_ptr<certificate_transparency::TreeStateTracker> ct_tree_tracker_;
324 328
325 BooleanPrefMember system_enable_referrers_; 329 BooleanPrefMember system_enable_referrers_;
326 330
327 BooleanPrefMember dns_client_enabled_; 331 BooleanPrefMember dns_client_enabled_;
328 332
329 BooleanPrefMember quick_check_enabled_; 333 BooleanPrefMember quick_check_enabled_;
330 334
335 BooleanPrefMember pac_https_url_stripping_enabled_;
336
331 // Store HTTP Auth-related policies in this thread. 337 // Store HTTP Auth-related policies in this thread.
332 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the 338 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the
333 // policy can change after startup (https://crbug/549273). 339 // policy can change after startup (https://crbug/549273).
334 std::string auth_schemes_; 340 std::string auth_schemes_;
335 BooleanPrefMember negotiate_disable_cname_lookup_; 341 BooleanPrefMember negotiate_disable_cname_lookup_;
336 BooleanPrefMember negotiate_enable_port_; 342 BooleanPrefMember negotiate_enable_port_;
337 StringPrefMember auth_server_whitelist_; 343 StringPrefMember auth_server_whitelist_;
338 StringPrefMember auth_delegate_whitelist_; 344 StringPrefMember auth_delegate_whitelist_;
339 345
340 #if defined(OS_ANDROID) 346 #if defined(OS_ANDROID)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // Callback for updating data use prefs which needs to be initialized on UI 378 // Callback for updating data use prefs which needs to be initialized on UI
373 // thread and passed to |ChromeNetworkDelegate|. 379 // thread and passed to |ChromeNetworkDelegate|.
374 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; 380 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_;
375 381
376 base::WeakPtrFactory<IOThread> weak_factory_; 382 base::WeakPtrFactory<IOThread> weak_factory_;
377 383
378 DISALLOW_COPY_AND_ASSIGN(IOThread); 384 DISALLOW_COPY_AND_ASSIGN(IOThread);
379 }; 385 };
380 386
381 #endif // CHROME_BROWSER_IO_THREAD_H_ 387 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698