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

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

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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/proxy/polling_proxy_config_service.cc ('k') | remoting/client/plugin/pepper_xmpp_proxy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
8 #include "net/url_request/url_request_context.h" 9 #include "net/url_request/url_request_context.h"
9 10
10 namespace net { 11 namespace net {
11 CookieStore* URLRequestContextGetter::DONTUSEME_GetCookieStore() { 12 CookieStore* URLRequestContextGetter::DONTUSEME_GetCookieStore() {
12 return NULL; 13 return NULL;
13 } 14 }
14 15
15 URLRequestContextGetter::URLRequestContextGetter() {} 16 URLRequestContextGetter::URLRequestContextGetter() {}
16 17
17 URLRequestContextGetter::~URLRequestContextGetter() {} 18 URLRequestContextGetter::~URLRequestContextGetter() {}
18 19
19 void URLRequestContextGetter::OnDestruct() const { 20 void URLRequestContextGetter::OnDestruct() const {
20 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy = 21 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy =
21 GetIOMessageLoopProxy(); 22 GetIOMessageLoopProxy();
22 DCHECK(io_message_loop_proxy); 23 DCHECK(io_message_loop_proxy);
23 if (io_message_loop_proxy) { 24 if (io_message_loop_proxy) {
24 if (io_message_loop_proxy->BelongsToCurrentThread()) 25 if (io_message_loop_proxy->BelongsToCurrentThread())
25 delete this; 26 delete this;
26 else 27 else
27 io_message_loop_proxy->DeleteSoon(FROM_HERE, this); 28 io_message_loop_proxy->DeleteSoon(FROM_HERE, this);
28 } 29 }
29 // If no IO message loop proxy was available, we will just leak memory. 30 // If no IO message loop proxy was available, we will just leak memory.
30 // This is also true if the IO thread is gone. 31 // This is also true if the IO thread is gone.
31 } 32 }
32 33
33 } // namespace net 34 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/polling_proxy_config_service.cc ('k') | remoting/client/plugin/pepper_xmpp_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698