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 "sky/engine/config.h" | |
6 #include "sky/engine/platform/fetcher/MojoFetcher.h" | 5 #include "sky/engine/platform/fetcher/MojoFetcher.h" |
7 | 6 |
8 #include "base/bind.h" | 7 #include "base/bind.h" |
9 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 8 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
10 #include "sky/engine/platform/weborigin/KURL.h" | 9 #include "sky/engine/platform/weborigin/KURL.h" |
11 #include "sky/engine/public/platform/Platform.h" | 10 #include "sky/engine/public/platform/Platform.h" |
12 | 11 |
13 namespace blink { | 12 namespace blink { |
14 | 13 |
15 MojoFetcher::MojoFetcher(Client* client, const KURL& url) | 14 MojoFetcher::MojoFetcher(Client* client, const KURL& url) |
(...skipping 16 matching lines...) Expand all Loading... |
32 } | 31 } |
33 | 32 |
34 MojoFetcher::~MojoFetcher() { | 33 MojoFetcher::~MojoFetcher() { |
35 } | 34 } |
36 | 35 |
37 void MojoFetcher::OnReceivedResponse(mojo::URLResponsePtr response) { | 36 void MojoFetcher::OnReceivedResponse(mojo::URLResponsePtr response) { |
38 client_->OnReceivedResponse(response.Pass()); | 37 client_->OnReceivedResponse(response.Pass()); |
39 } | 38 } |
40 | 39 |
41 } // namespace blink | 40 } // namespace blink |
OLD | NEW |