| 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 "components/html_viewer/web_url_loader_impl.h" | 5 #include "components/html_viewer/web_url_loader_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/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 MOJO_HANDLE_SIGNAL_READABLE, | 343 MOJO_HANDLE_SIGNAL_READABLE, |
| 344 MOJO_DEADLINE_INDEFINITE, | 344 MOJO_DEADLINE_INDEFINITE, |
| 345 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, | 345 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, |
| 346 weak_factory_.GetWeakPtr())); | 346 weak_factory_.GetWeakPtr())); |
| 347 } | 347 } |
| 348 | 348 |
| 349 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { | 349 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { |
| 350 ReadMore(); | 350 ReadMore(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 void WebURLLoaderImpl::setLoadingTaskRunner( |
| 354 blink::WebTaskRunner* web_task_runner) { |
| 355 // TODO(alexclarke): Consider hooking this up. |
| 356 } |
| 357 |
| 353 } // namespace html_viewer | 358 } // namespace html_viewer |
| OLD | NEW |