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

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

Issue 2273403003: Moving gRPC support interfaces out of cronet and into a new component. (Closed)
Patch Set: Add DEPS Created 4 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) 2012 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.h" 5 #include "net/url_request/url_request_context.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/debug/alias.h" 8 #include "base/debug/alias.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 base::strlcpy(url_buf, request->url().spec().c_str(), arraysize(url_buf)); 103 base::strlcpy(url_buf, request->url().spec().c_str(), arraysize(url_buf));
104 int load_flags = request->load_flags(); 104 int load_flags = request->load_flags();
105 base::debug::Alias(url_buf); 105 base::debug::Alias(url_buf);
106 base::debug::Alias(&num_requests); 106 base::debug::Alias(&num_requests);
107 base::debug::Alias(&load_flags); 107 base::debug::Alias(&load_flags);
108 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: " 108 CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: "
109 << request->url().spec().c_str() << "."; 109 << request->url().spec().c_str() << ".";
110 } 110 }
111 } 111 }
112 112
113 void URLRequestContext::DetachFromThread() {
114 base::NonThreadSafe::DetachFromThread();
115 }
116
113 } // namespace net 117 } // namespace net
OLDNEW
« components/grpc_support/include/DEPS ('K') | « net/url_request/url_request_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698