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

Side by Side Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 3869003: Const-ify RefCountedThreadSafe::AddRef and Release. (Closed)
Patch Set: actually remove the cast Created 10 years, 2 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.h ('k') | chrome/browser/renderer_host/pepper_file_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698