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

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

Issue 2565873002: [translate] Add translate ranker model loader. (Closed)
Patch Set: comments from groby and fdoray Created 3 years, 10 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_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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698