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

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

Issue 2059513003: Add a policy for disabling the stripping of PAC URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // called on the IO thread. 418 // called on the IO thread.
419 void ClearHostCache(); 419 void ClearHostCache();
420 420
421 const net::HttpNetworkSession::Params& NetworkSessionParams() const; 421 const net::HttpNetworkSession::Params& NetworkSessionParams() const;
422 422
423 base::TimeTicks creation_time() const; 423 base::TimeTicks creation_time() const;
424 424
425 // Returns the callback for updating data use prefs. 425 // Returns the callback for updating data use prefs.
426 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder(); 426 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder();
427 427
428 // Returns true if the indicated proxy resolution features are
429 // enabled. These features are controlled through
430 // preferences/policy/commandline.
431 //
432 // For a description of what these features are, and how they are
433 // configured, see the comments in pref_names.cc for
434 // |kQuickCheckEnabled| and |kPacHttpsUrlStrippingEnabled
435 // respectively.
436 bool WpadQuickCheckEnabled() const;
437 bool PacHttpsUrlStrippingEnabled() const;
438
428 private: 439 private:
429 // Provide SystemURLRequestContextGetter with access to 440 // Provide SystemURLRequestContextGetter with access to
430 // InitSystemRequestContext(). 441 // InitSystemRequestContext().
431 friend class SystemURLRequestContextGetter; 442 friend class SystemURLRequestContextGetter;
432 443
433 friend class test::IOThreadPeer; 444 friend class test::IOThreadPeer;
434 445
435 // BrowserThreadDelegate implementation, runs on the IO thread. 446 // BrowserThreadDelegate implementation, runs on the IO thread.
436 // This handles initialization and destruction of state that must 447 // This handles initialization and destruction of state that must
437 // live on the IO thread. 448 // live on the IO thread.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 520
510 // Observer that logs network changes to the ChromeNetLog. 521 // Observer that logs network changes to the ChromeNetLog.
511 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_; 522 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_;
512 523
513 BooleanPrefMember system_enable_referrers_; 524 BooleanPrefMember system_enable_referrers_;
514 525
515 BooleanPrefMember dns_client_enabled_; 526 BooleanPrefMember dns_client_enabled_;
516 527
517 BooleanPrefMember quick_check_enabled_; 528 BooleanPrefMember quick_check_enabled_;
518 529
530 BooleanPrefMember pac_https_url_stripping_enabled_;
531
519 // Store HTTP Auth-related policies in this thread. 532 // Store HTTP Auth-related policies in this thread.
520 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the 533 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the
521 // policy can change after startup (https://crbug/549273). 534 // policy can change after startup (https://crbug/549273).
522 std::string auth_schemes_; 535 std::string auth_schemes_;
523 BooleanPrefMember negotiate_disable_cname_lookup_; 536 BooleanPrefMember negotiate_disable_cname_lookup_;
524 BooleanPrefMember negotiate_enable_port_; 537 BooleanPrefMember negotiate_enable_port_;
525 StringPrefMember auth_server_whitelist_; 538 StringPrefMember auth_server_whitelist_;
526 StringPrefMember auth_delegate_whitelist_; 539 StringPrefMember auth_delegate_whitelist_;
527 540
528 #if defined(OS_ANDROID) 541 #if defined(OS_ANDROID)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 // Callback for updating data use prefs which needs to be initialized on UI 573 // Callback for updating data use prefs which needs to be initialized on UI
561 // thread and passed to |ChromeNetworkDelegate|. 574 // thread and passed to |ChromeNetworkDelegate|.
562 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; 575 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_;
563 576
564 base::WeakPtrFactory<IOThread> weak_factory_; 577 base::WeakPtrFactory<IOThread> weak_factory_;
565 578
566 DISALLOW_COPY_AND_ASSIGN(IOThread); 579 DISALLOW_COPY_AND_ASSIGN(IOThread);
567 }; 580 };
568 581
569 #endif // CHROME_BROWSER_IO_THREAD_H_ 582 #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