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

Side by Side Diff: sky/viewer/content_handler_impl.h

Issue 868463008: Remove Client relationship between mojo.Shell/mojo.Application (Closed) Base URL: git@github.com:domokit/mojo.git@app_impl_init
Patch Set: fix android Created 5 years, 11 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
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 #ifndef SKY_VIEWER_CONTENT_HANDLER_IMPL_H_ 5 #ifndef SKY_VIEWER_CONTENT_HANDLER_IMPL_H_
6 #define SKY_VIEWER_CONTENT_HANDLER_IMPL_H_ 6 #define SKY_VIEWER_CONTENT_HANDLER_IMPL_H_
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "mojo/public/interfaces/application/shell.mojom.h" 9 #include "mojo/public/interfaces/application/shell.mojom.h"
10 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h" 10 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h"
11 11
12 namespace sky { 12 namespace sky {
13 class DocumentView; 13 class DocumentView;
14 14
15 class ContentHandlerImpl : public mojo::InterfaceImpl<mojo::ContentHandler> { 15 class ContentHandlerImpl : public mojo::InterfaceImpl<mojo::ContentHandler> {
16 public: 16 public:
17 ContentHandlerImpl(); 17 ContentHandlerImpl();
18 ~ContentHandlerImpl() override; 18 ~ContentHandlerImpl() override;
19 19
20 private: 20 private:
21 // Overridden from ContentHandler: 21 // Overridden from ContentHandler:
22 void StartApplication(mojo::ShellPtr shell, 22 void StartApplication(mojo::InterfaceRequest<mojo::Application> application,
23 mojo::URLResponsePtr response) override; 23 mojo::URLResponsePtr response) override;
24 24
25 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl); 25 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl);
26 }; 26 };
27 27
28 } // namespace sky 28 } // namespace sky
29 29
30 #endif // SKY_VIEWER_CONTENT_HANDLER_IMPL_H_ 30 #endif // SKY_VIEWER_CONTENT_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698