| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/web_view/url_request_cloneable.h" | 5 #include "components/web_view/url_request_cloneable.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "mojo/common/data_pipe_utils.h" | 10 #include "mojo/common/data_pipe_utils.h" |
| 9 #include "mojo/common/url_type_converters.h" | 11 #include "mojo/common/url_type_converters.h" |
| 10 | 12 |
| 11 namespace web_view { | 13 namespace web_view { |
| 12 | 14 |
| 13 // TODO(erg): In the long run, we might not want to have a stack of | 15 // TODO(erg): In the long run, we might not want to have a stack of |
| 14 // URLRequestPtrs, but another type that captures most of the data. When I saw | 16 // URLRequestPtrs, but another type that captures most of the data. When I saw |
| 15 // NavigationController the first time, I didn't understand why they made their | 17 // NavigationController the first time, I didn't understand why they made their |
| 16 // own datastructure which kept track of everything in a request. The reason is | 18 // own datastructure which kept track of everything in a request. The reason is |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 DCHECK_EQ(num_bytes, body_[i].size()); | 74 DCHECK_EQ(num_bytes, body_[i].size()); |
| 73 } | 75 } |
| 74 } | 76 } |
| 75 | 77 |
| 76 request->originating_time_ticks = originating_time_.ToInternalValue(); | 78 request->originating_time_ticks = originating_time_.ToInternalValue(); |
| 77 | 79 |
| 78 return request.Pass(); | 80 return request.Pass(); |
| 79 } | 81 } |
| 80 | 82 |
| 81 } // namespace web_view | 83 } // namespace web_view |
| OLD | NEW |