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

Side by Side Diff: chrome/service/net/service_url_request_context.cc

Issue 3971004: Revert "Revert "Const-ify RefCountedThreadSafe::AddRef and Release."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « chrome/service/net/service_url_request_context.h ('k') | chrome/test/testing_profile.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) 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/service/net/service_url_request_context.h" 5 #include "chrome/service/net/service_url_request_context.h"
6 6
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "chrome/service/service_process.h" 8 #include "chrome/service/service_process.h"
9 #include "net/base/cookie_monster.h" 9 #include "net/base/cookie_monster.h"
10 #include "net/base/cookie_policy.h" 10 #include "net/base/cookie_policy.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 delete http_transaction_factory_; 57 delete http_transaction_factory_;
58 delete http_auth_handler_factory_; 58 delete http_auth_handler_factory_;
59 delete dnsrr_resolver_; 59 delete dnsrr_resolver_;
60 } 60 }
61 61
62 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter() 62 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter()
63 : io_message_loop_proxy_( 63 : io_message_loop_proxy_(
64 g_service_process->io_thread()->message_loop_proxy()) { 64 g_service_process->io_thread()->message_loop_proxy()) {
65 } 65 }
66 66
67 URLRequestContext* ServiceURLRequestContextGetter::GetURLRequestContext() { 67 URLRequestContext*
68 ServiceURLRequestContextGetter::GetURLRequestContext() {
68 if (!url_request_context_) 69 if (!url_request_context_)
69 url_request_context_ = new ServiceURLRequestContext(); 70 url_request_context_ = new ServiceURLRequestContext();
70 return url_request_context_; 71 return url_request_context_;
71 } 72 }
72 73
73 scoped_refptr<base::MessageLoopProxy> 74 scoped_refptr<base::MessageLoopProxy>
74 ServiceURLRequestContextGetter::GetIOMessageLoopProxy() { 75 ServiceURLRequestContextGetter::GetIOMessageLoopProxy() const {
75 return io_message_loop_proxy_; 76 return io_message_loop_proxy_;
76 } 77 }
77 78
78 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {} 79 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {}
OLDNEW
« no previous file with comments | « chrome/service/net/service_url_request_context.h ('k') | chrome/test/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698