OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/net/chrome_url_request_context.h" | 5 #include "chrome/browser/net/chrome_url_request_context.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 &ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper, | 601 &ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper, |
602 &completion, | 602 &completion, |
603 &result)); | 603 &result)); |
604 | 604 |
605 completion.Wait(); | 605 completion.Wait(); |
606 DCHECK(result); | 606 DCHECK(result); |
607 return result; | 607 return result; |
608 } | 608 } |
609 | 609 |
610 scoped_refptr<base::MessageLoopProxy> | 610 scoped_refptr<base::MessageLoopProxy> |
611 ChromeURLRequestContextGetter::GetIOMessageLoopProxy() { | 611 ChromeURLRequestContextGetter::GetIOMessageLoopProxy() const { |
612 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 612 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); |
613 } | 613 } |
614 | 614 |
615 // static | 615 // static |
616 ChromeURLRequestContextGetter* ChromeURLRequestContextGetter::CreateOriginal( | 616 ChromeURLRequestContextGetter* ChromeURLRequestContextGetter::CreateOriginal( |
617 Profile* profile, const FilePath& cookie_store_path, | 617 Profile* profile, const FilePath& cookie_store_path, |
618 const FilePath& disk_cache_path, int cache_size) { | 618 const FilePath& disk_cache_path, int cache_size) { |
619 DCHECK(!profile->IsOffTheRecord()); | 619 DCHECK(!profile->IsOffTheRecord()); |
620 return new ChromeURLRequestContextGetter( | 620 return new ChromeURLRequestContextGetter( |
621 profile, | 621 profile, |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 prefs::kProxyAutoDetect)); | 973 prefs::kProxyAutoDetect)); |
974 | 974 |
975 if (pref_service->HasPrefPath(prefs::kProxyBypassList)) { | 975 if (pref_service->HasPrefPath(prefs::kProxyBypassList)) { |
976 std::string proxy_bypass = | 976 std::string proxy_bypass = |
977 pref_service->GetString(prefs::kProxyBypassList); | 977 pref_service->GetString(prefs::kProxyBypassList); |
978 proxy_config->proxy_rules().bypass_rules.ParseFromString(proxy_bypass); | 978 proxy_config->proxy_rules().bypass_rules.ParseFromString(proxy_bypass); |
979 } | 979 } |
980 | 980 |
981 return proxy_config; | 981 return proxy_config; |
982 } | 982 } |
OLD | NEW |