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

Side by Side Diff: net/url_request/url_request_context_getter.cc

Issue 9810022: Remove DONTUSEME_GetCookieStore(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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 | « net/url_request/url_request_context_getter.h ('k') | no next file » | 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) 2011 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 #include "net/url_request/url_request_context_getter.h" 5 #include "net/url_request/url_request_context_getter.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "net/url_request/url_request_context.h" 9 #include "net/url_request/url_request_context.h"
10 10
11 namespace net { 11 namespace net {
12 CookieStore* URLRequestContextGetter::DONTUSEME_GetCookieStore() {
13 return NULL;
14 }
15 12
16 URLRequestContextGetter::URLRequestContextGetter() {} 13 URLRequestContextGetter::URLRequestContextGetter() {}
17 14
18 URLRequestContextGetter::~URLRequestContextGetter() {} 15 URLRequestContextGetter::~URLRequestContextGetter() {}
19 16
20 void URLRequestContextGetter::OnDestruct() const { 17 void URLRequestContextGetter::OnDestruct() const {
21 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy = 18 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy =
22 GetIOMessageLoopProxy(); 19 GetIOMessageLoopProxy();
23 DCHECK(io_message_loop_proxy); 20 DCHECK(io_message_loop_proxy);
24 if (io_message_loop_proxy) { 21 if (io_message_loop_proxy) {
25 if (io_message_loop_proxy->BelongsToCurrentThread()) 22 if (io_message_loop_proxy->BelongsToCurrentThread())
26 delete this; 23 delete this;
27 else 24 else
28 io_message_loop_proxy->DeleteSoon(FROM_HERE, this); 25 io_message_loop_proxy->DeleteSoon(FROM_HERE, this);
29 } 26 }
30 // If no IO message loop proxy was available, we will just leak memory. 27 // If no IO message loop proxy was available, we will just leak memory.
31 // This is also true if the IO thread is gone. 28 // This is also true if the IO thread is gone.
32 } 29 }
33 30
34 } // namespace net 31 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_getter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698