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 MOJO_SHELL_STANDALONE_ANDROID_ANDROID_HANDLER_H_ | 5 #ifndef MOJO_SHELL_STANDALONE_ANDROID_ANDROID_HANDLER_H_ |
6 #define MOJO_SHELL_STANDALONE_ANDROID_ANDROID_HANDLER_H_ | 6 #define MOJO_SHELL_STANDALONE_ANDROID_ANDROID_HANDLER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "mojo/shell/public/cpp/content_handler_factory.h" | 10 #include "mojo/shell/public/cpp/content_handler_factory.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 public: | 24 public: |
25 AndroidHandler(); | 25 AndroidHandler(); |
26 ~AndroidHandler(); | 26 ~AndroidHandler(); |
27 | 27 |
28 private: | 28 private: |
29 // mojo::ShellClient: | 29 // mojo::ShellClient: |
30 void Initialize(Shell* shell, const std::string& url, uint32_t id) override; | 30 void Initialize(Shell* shell, const std::string& url, uint32_t id) override; |
31 bool AcceptConnection(Connection* connection) override; | 31 bool AcceptConnection(Connection* connection) override; |
32 | 32 |
33 // ContentHandlerFactory::Delegate: | 33 // ContentHandlerFactory::Delegate: |
34 void RunApplication(InterfaceRequest<mojom::Application> application_request, | 34 void RunApplication(InterfaceRequest<mojom::ShellClient> request, |
35 URLResponsePtr response) override; | 35 URLResponsePtr response) override; |
36 | 36 |
37 ContentHandlerFactory content_handler_factory_; | 37 ContentHandlerFactory content_handler_factory_; |
38 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); | 38 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); |
39 }; | 39 }; |
40 | 40 |
41 bool RegisterAndroidHandlerJni(JNIEnv* env); | 41 bool RegisterAndroidHandlerJni(JNIEnv* env); |
42 | 42 |
43 } // namespace shell | 43 } // namespace shell |
44 } // namespace mojo | 44 } // namespace mojo |
45 | 45 |
46 #endif // MOJO_SHELL_STANDALONE_ANDROID_ANDROID_HANDLER_H_ | 46 #endif // MOJO_SHELL_STANDALONE_ANDROID_ANDROID_HANDLER_H_ |
OLD | NEW |