OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/services/html_viewer/weburlloader_impl.h" | 5 #include "mojo/services/html_viewer/weburlloader_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
11 #include "mojo/common/common_type_converters.h" | 11 #include "mojo/common/common_type_converters.h" |
| 12 #include "mojo/common/url_type_converters.h" |
12 #include "mojo/services/html_viewer/blink_url_request_type_converters.h" | 13 #include "mojo/services/html_viewer/blink_url_request_type_converters.h" |
13 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 14 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
14 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
15 #include "third_party/WebKit/public/platform/WebURLError.h" | 16 #include "third_party/WebKit/public/platform/WebURLError.h" |
16 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" | 17 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" |
17 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" | 18 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
18 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 19 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
19 | 20 |
20 using mojo::URLResponsePtr; | 21 using mojo::URLResponsePtr; |
21 | 22 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 MOJO_DEADLINE_INDEFINITE, | 217 MOJO_DEADLINE_INDEFINITE, |
217 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, | 218 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, |
218 weak_factory_.GetWeakPtr())); | 219 weak_factory_.GetWeakPtr())); |
219 } | 220 } |
220 | 221 |
221 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { | 222 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { |
222 ReadMore(); | 223 ReadMore(); |
223 } | 224 } |
224 | 225 |
225 } // namespace html_viewer | 226 } // namespace html_viewer |
OLD | NEW |