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

Side by Side Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 1350553005: [Android WebView] Call shouldInterceptRequest on a background thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Get rid of has_been_killed Created 5 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 "android_webview/browser/net/aw_url_request_context_getter.h" 5 #include "android_webview/browser/net/aw_url_request_context_getter.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_content_browser_client.h" 10 #include "android_webview/browser/aw_content_browser_client.h"
11 #include "android_webview/browser/aw_request_interceptor.h"
12 #include "android_webview/browser/net/aw_http_user_agent_settings.h" 11 #include "android_webview/browser/net/aw_http_user_agent_settings.h"
13 #include "android_webview/browser/net/aw_network_delegate.h" 12 #include "android_webview/browser/net/aw_network_delegate.h"
13 #include "android_webview/browser/net/aw_request_interceptor.h"
14 #include "android_webview/browser/net/aw_url_request_job_factory.h" 14 #include "android_webview/browser/net/aw_url_request_job_factory.h"
15 #include "android_webview/browser/net/init_native_callback.h" 15 #include "android_webview/browser/net/init_native_callback.h"
16 #include "android_webview/common/aw_content_client.h" 16 #include "android_webview/common/aw_content_client.h"
17 #include "base/bind.h" 17 #include "base/bind.h"
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "base/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
20 #include "base/threading/sequenced_worker_pool.h" 20 #include "base/threading/sequenced_worker_pool.h"
21 #include "base/threading/worker_pool.h" 21 #include "base/threading/worker_pool.h"
22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw ork_delegate.h" 23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_netw ork_delegate.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 return net_log_.get(); 277 return net_log_.get();
278 } 278 }
279 279
280 void AwURLRequestContextGetter::SetKeyOnIO(const std::string& key) { 280 void AwURLRequestContextGetter::SetKeyOnIO(const std::string& key) {
281 DCHECK(AwBrowserContext::GetDefault()->GetDataReductionProxyIOData()); 281 DCHECK(AwBrowserContext::GetDefault()->GetDataReductionProxyIOData());
282 AwBrowserContext::GetDefault()->GetDataReductionProxyIOData()-> 282 AwBrowserContext::GetDefault()->GetDataReductionProxyIOData()->
283 request_options()->SetKeyOnIO(key); 283 request_options()->SetKeyOnIO(key);
284 } 284 }
285 285
286 } // namespace android_webview 286 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698