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 #ifndef SKY_VIEWER_CONTENT_HANDLER_IMPL_H_ | 5 #ifndef SERVICES_SKY_CONTENT_HANDLER_IMPL_H_ |
6 #define SKY_VIEWER_CONTENT_HANDLER_IMPL_H_ | 6 #define SERVICES_SKY_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/cpp/bindings/strong_binding.h" | 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
10 #include "mojo/public/interfaces/application/shell.mojom.h" | 10 #include "mojo/public/interfaces/application/shell.mojom.h" |
11 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom.
h" | 11 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom.
h" |
12 | 12 |
13 namespace sky { | 13 namespace sky { |
14 class DocumentView; | 14 class DocumentView; |
15 | 15 |
16 class ContentHandlerImpl : public mojo::ContentHandler { | 16 class ContentHandlerImpl : public mojo::ContentHandler { |
17 public: | 17 public: |
18 explicit ContentHandlerImpl( | 18 explicit ContentHandlerImpl( |
19 mojo::InterfaceRequest<mojo::ContentHandler> request); | 19 mojo::InterfaceRequest<mojo::ContentHandler> request); |
20 ~ContentHandlerImpl() override; | 20 ~ContentHandlerImpl() override; |
21 | 21 |
22 private: | 22 private: |
23 // Overridden from ContentHandler: | 23 // Overridden from ContentHandler: |
24 void StartApplication(mojo::InterfaceRequest<mojo::Application> application, | 24 void StartApplication(mojo::InterfaceRequest<mojo::Application> application, |
25 mojo::URLResponsePtr response) override; | 25 mojo::URLResponsePtr response) override; |
26 | 26 |
27 mojo::StrongBinding<mojo::ContentHandler> binding_; | 27 mojo::StrongBinding<mojo::ContentHandler> binding_; |
28 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl); | 28 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace sky | 31 } // namespace sky |
32 | 32 |
33 #endif // SKY_VIEWER_CONTENT_HANDLER_IMPL_H_ | 33 #endif // SERVICES_SKY_CONTENT_HANDLER_IMPL_H_ |
OLD | NEW |