| 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/examples/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/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 10 #include "mojo/common/common_type_converters.h" | 10 #include "mojo/common/common_type_converters.h" |
| 11 #include "mojo/services/public/interfaces/network/network_service.mojom.h" | 11 #include "mojo/services/public/interfaces/network/network_service.mojom.h" |
| 12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 13 #include "third_party/WebKit/public/platform/WebURLError.h" | 13 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 14 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" | 14 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" |
| 15 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" | 15 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, | 182 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, |
| 183 weak_factory_.GetWeakPtr())); | 183 weak_factory_.GetWeakPtr())); |
| 184 } | 184 } |
| 185 | 185 |
| 186 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { | 186 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { |
| 187 ReadMore(); | 187 ReadMore(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace examples | 190 } // namespace examples |
| 191 } // namespace mojo | 191 } // namespace mojo |
| OLD | NEW |