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/loader/async_resource_handler.h" | 5 #include "content/browser/loader/async_resource_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/debug/alias.h" | 12 #include "base/debug/alias.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
17 #include "base/metrics/histogram_macros.h" | 17 #include "base/metrics/histogram_macros.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "content/browser/loader/netlog_observer.h" | 20 #include "content/browser/loader/netlog_observer.h" |
21 #include "content/browser/loader/resource_buffer.h" | 21 #include "content/browser/loader/resource_buffer.h" |
22 #include "content/browser/loader/resource_controller.h" | 22 #include "content/browser/loader/resource_controller.h" |
23 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 23 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
24 #include "content/browser/loader/resource_message_filter.h" | 24 #include "content/browser/loader/resource_message_filter.h" |
25 #include "content/browser/loader/resource_request_info_impl.h" | 25 #include "content/browser/loader/resource_request_info_impl.h" |
26 #include "content/browser/loader/upload_progress_tracker.h" | 26 #include "content/browser/loader/upload_progress_tracker.h" |
27 #include "content/common/resource_messages.h" | 27 #include "content/common/resource_messages.h" |
28 #include "content/common/resource_request_completion_status.h" | |
29 #include "content/common/view_messages.h" | 28 #include "content/common/view_messages.h" |
| 29 #include "content/public/common/resource_request_completion_status.h" |
30 #include "content/public/common/resource_response.h" | 30 #include "content/public/common/resource_response.h" |
31 #include "ipc/ipc_message_macros.h" | 31 #include "ipc/ipc_message_macros.h" |
32 #include "net/base/io_buffer.h" | 32 #include "net/base/io_buffer.h" |
33 #include "net/base/load_flags.h" | 33 #include "net/base/load_flags.h" |
34 #include "net/base/upload_progress.h" | 34 #include "net/base/upload_progress.h" |
35 #include "net/url_request/redirect_info.h" | 35 #include "net/url_request/redirect_info.h" |
36 | 36 |
37 using base::TimeDelta; | 37 using base::TimeDelta; |
38 using base::TimeTicks; | 38 using base::TimeTicks; |
39 | 39 |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 void AsyncResourceHandler::SendUploadProgress( | 488 void AsyncResourceHandler::SendUploadProgress( |
489 const net::UploadProgress& progress) { | 489 const net::UploadProgress& progress) { |
490 ResourceMessageFilter* filter = GetFilter(); | 490 ResourceMessageFilter* filter = GetFilter(); |
491 if (!filter) | 491 if (!filter) |
492 return; | 492 return; |
493 filter->Send(new ResourceMsg_UploadProgress( | 493 filter->Send(new ResourceMsg_UploadProgress( |
494 GetRequestID(), progress.position(), progress.size())); | 494 GetRequestID(), progress.position(), progress.size())); |
495 } | 495 } |
496 | 496 |
497 } // namespace content | 497 } // namespace content |
OLD | NEW |