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 "content/browser/android/download_controller.h" | 5 #include "content/browser/android/download_controller.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "content/browser/android/content_view_core_impl.h" | 12 #include "content/browser/android/content_view_core_impl.h" |
13 #include "content/browser/download/download_item_impl.h" | 13 #include "content/browser/download/download_item_impl.h" |
14 #include "content/browser/renderer_host/render_process_host_impl.h" | 14 #include "content/browser/renderer_host/render_process_host_impl.h" |
15 #include "content/browser/renderer_host/render_view_host_delegate.h" | 15 #include "content/browser/renderer_host/render_view_host_delegate.h" |
16 #include "content/browser/renderer_host/render_view_host_impl.h" | 16 #include "content/browser/renderer_host/render_view_host_impl.h" |
17 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 17 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
18 #include "content/browser/web_contents/web_contents_impl.h" | 18 #include "content/browser/web_contents/web_contents_impl.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/global_request_id.h" | 20 #include "content/public/browser/global_request_id.h" |
21 #include "jni/download_controller_jni.h" | 21 #include "jni/DownloadController_jni.h" |
22 #include "net/cookies/cookie_options.h" | 22 #include "net/cookies/cookie_options.h" |
23 #include "net/cookies/cookie_store.h" | 23 #include "net/cookies/cookie_store.h" |
24 #include "net/http/http_request_headers.h" | 24 #include "net/http/http_request_headers.h" |
25 #include "net/url_request/url_request.h" | 25 #include "net/url_request/url_request.h" |
26 #include "net/url_request/url_request_context.h" | 26 #include "net/url_request/url_request_context.h" |
27 | 27 |
28 using base::android::AttachCurrentThread; | 28 using base::android::AttachCurrentThread; |
29 using base::android::CheckException; | 29 using base::android::CheckException; |
30 using base::android::ConvertUTF8ToJavaString; | 30 using base::android::ConvertUTF8ToJavaString; |
31 using base::android::GetClass; | 31 using base::android::GetClass; |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 request->extra_request_headers().GetHeader( | 310 request->extra_request_headers().GetHeader( |
311 net::HttpRequestHeaders::kUserAgent, | 311 net::HttpRequestHeaders::kUserAgent, |
312 &user_agent); | 312 &user_agent); |
313 if (!request->url_chain().empty()) { | 313 if (!request->url_chain().empty()) { |
314 original_url = request->url_chain().front(); | 314 original_url = request->url_chain().front(); |
315 url = request->url_chain().back(); | 315 url = request->url_chain().back(); |
316 } | 316 } |
317 } | 317 } |
318 | 318 |
319 } // namespace content | 319 } // namespace content |
OLD | NEW |