| 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" |
| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 return context_; | 74 return context_; |
| 74 } | 75 } |
| 75 | 76 |
| 76 scoped_refptr<base::SingleThreadTaskRunner> | 77 scoped_refptr<base::SingleThreadTaskRunner> |
| 77 TrivialURLRequestContextGetter::GetNetworkTaskRunner() const { | 78 TrivialURLRequestContextGetter::GetNetworkTaskRunner() const { |
| 78 return main_task_runner_; | 79 return main_task_runner_; |
| 79 } | 80 } |
| 80 | 81 |
| 81 | 82 |
| 82 } // namespace net | 83 } // namespace net |
| OLD | NEW |