Chromium Code Reviews| 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_getter.h" | 5 #include "net/url_request/url_request_context_getter.h" | 
| 6 | 6 | 
| 7 #include "base/debug/leak_annotations.h" | 7 #include "base/debug/leak_annotations.h" | 
| 8 #include "base/debug/stack_trace.h" | |
| 
 
asanka
2017/02/23 22:29:07
Unused
 
Roger McFarlane (Chromium)
2017/02/24 02:49:53
oops. remnants of debugging.
Done.
 
 | |
| 8 #include "base/location.h" | 9 #include "base/location.h" | 
| 9 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" | 
| 10 #include "net/url_request/url_request_context.h" | 11 #include "net/url_request/url_request_context.h" | 
| 11 #include "net/url_request/url_request_context_getter_observer.h" | 12 #include "net/url_request/url_request_context_getter_observer.h" | 
| 12 | 13 | 
| 13 namespace net { | 14 namespace net { | 
| 14 | 15 | 
| 15 void URLRequestContextGetter::AddObserver( | 16 void URLRequestContextGetter::AddObserver( | 
| 16 URLRequestContextGetterObserver* observer) { | 17 URLRequestContextGetterObserver* observer) { | 
| 17 DCHECK(GetNetworkTaskRunner()->BelongsToCurrentThread()); | 18 DCHECK(GetNetworkTaskRunner()->BelongsToCurrentThread()); | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 return context_; | 76 return context_; | 
| 76 } | 77 } | 
| 77 | 78 | 
| 78 scoped_refptr<base::SingleThreadTaskRunner> | 79 scoped_refptr<base::SingleThreadTaskRunner> | 
| 79 TrivialURLRequestContextGetter::GetNetworkTaskRunner() const { | 80 TrivialURLRequestContextGetter::GetNetworkTaskRunner() const { | 
| 80 return main_task_runner_; | 81 return main_task_runner_; | 
| 81 } | 82 } | 
| 82 | 83 | 
| 83 | 84 | 
| 84 } // namespace net | 85 } // namespace net | 
| OLD | NEW |