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/viewer/content_handler_impl.h" | 5 #include "sky/viewer/content_handler_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "mojo/public/cpp/application/connect.h" | 8 #include "mojo/public/cpp/application/connect.h" |
9 #include "mojo/services/public/interfaces/network/network_service.mojom.h" | 9 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
10 #include "sky/viewer/document_view.h" | 10 #include "sky/viewer/document_view.h" |
11 | 11 |
12 namespace sky { | 12 namespace sky { |
13 | 13 |
14 class SkyApplication : public mojo::Application { | 14 class SkyApplication : public mojo::Application { |
15 public: | 15 public: |
16 SkyApplication(mojo::ShellPtr shell, | 16 SkyApplication(mojo::ShellPtr shell, |
17 mojo::URLResponsePtr response) | 17 mojo::URLResponsePtr response) |
18 : url_(response->url), | 18 : url_(response->url), |
19 shell_(shell.Pass()), | 19 shell_(shell.Pass()), |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 ContentHandlerImpl::~ContentHandlerImpl() { | 70 ContentHandlerImpl::~ContentHandlerImpl() { |
71 } | 71 } |
72 | 72 |
73 void ContentHandlerImpl::StartApplication(mojo::ShellPtr shell, | 73 void ContentHandlerImpl::StartApplication(mojo::ShellPtr shell, |
74 mojo::URLResponsePtr response) { | 74 mojo::URLResponsePtr response) { |
75 new SkyApplication(shell.Pass(), response.Pass()); | 75 new SkyApplication(shell.Pass(), response.Pass()); |
76 } | 76 } |
77 | 77 |
78 } // namespace sky | 78 } // namespace sky |
OLD | NEW |