| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |