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

Side by Side Diff: sky/viewer/platform/weburlloader_impl.cc

Issue 789243002: Restructure public side of network service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 6 years 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 | « sky/viewer/platform/weburlloader_impl.h ('k') | no next file » | 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 "sky/viewer/platform/weburlloader_impl.h" 5 #include "sky/viewer/platform/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/services/public/interfaces/network/network_service.mojom.h" 12 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "sky/engine/public/platform/WebURLError.h" 14 #include "sky/engine/public/platform/WebURLError.h"
15 #include "sky/engine/public/platform/WebURLLoadTiming.h" 15 #include "sky/engine/public/platform/WebURLLoadTiming.h"
16 #include "sky/engine/public/platform/WebURLLoaderClient.h" 16 #include "sky/engine/public/platform/WebURLLoaderClient.h"
17 #include "sky/engine/public/platform/WebURLResponse.h" 17 #include "sky/engine/public/platform/WebURLResponse.h"
18 #include "sky/viewer/converters/url_request_types.h" 18 #include "sky/viewer/converters/url_request_types.h"
19 19
20 namespace sky { 20 namespace sky {
21 namespace { 21 namespace {
22 22
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 MOJO_DEADLINE_INDEFINITE, 186 MOJO_DEADLINE_INDEFINITE,
187 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady, 187 base::Bind(&WebURLLoaderImpl::OnResponseBodyStreamReady,
188 weak_factory_.GetWeakPtr())); 188 weak_factory_.GetWeakPtr()));
189 } 189 }
190 190
191 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) { 191 void WebURLLoaderImpl::OnResponseBodyStreamReady(MojoResult result) {
192 ReadMore(); 192 ReadMore();
193 } 193 }
194 194
195 } // namespace sky 195 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/platform/weburlloader_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698