Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: components/html_viewer/web_url_loader_impl.cc

Issue 1099303002: Move html_viewer from mojo/services to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/html_viewer/web_url_loader_impl.h ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/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/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 "components/html_viewer/blink_url_request_type_converters.h"
11 #include "mojo/common/common_type_converters.h" 12 #include "mojo/common/common_type_converters.h"
12 #include "mojo/common/url_type_converters.h" 13 #include "mojo/common/url_type_converters.h"
13 #include "mojo/services/html_viewer/blink_url_request_type_converters.h"
14 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 14 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "third_party/WebKit/public/platform/WebURLError.h" 16 #include "third_party/WebKit/public/platform/WebURLError.h"
17 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" 17 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h"
18 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 18 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
19 #include "third_party/WebKit/public/platform/WebURLResponse.h" 19 #include "third_party/WebKit/public/platform/WebURLResponse.h"
20 20
21 using blink::WebString; 21 using blink::WebString;
22 using mojo::URLResponsePtr; 22 using mojo::URLResponsePtr;
23 23
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 MOJO_DEADLINE_INDEFINITE, 296 MOJO_DEADLINE_INDEFINITE,
297 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, 297 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady,
298 weak_factory_.GetWeakPtr())); 298 weak_factory_.GetWeakPtr()));
299 } 299 }
300 300
301 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { 301 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) {
302 ReadMore(); 302 ReadMore();
303 } 303 }
304 304
305 } // namespace html_viewer 305 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/web_url_loader_impl.h ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698