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

Side by Side Diff: sky/viewer/content_handler_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/BUILD.gn ('k') | sky/viewer/converters/url_request_types.h » ('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 "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
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
OLDNEW
« no previous file with comments | « sky/viewer/BUILD.gn ('k') | sky/viewer/converters/url_request_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698