| 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_ANDROID_CONTENT_HANDLER_H_ | 5 #ifndef MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ |
| 6 #define MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ | 6 #define MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "mojo/application/content_handler_factory.h" | 10 #include "mojo/application/content_handler_factory.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 AndroidHandler(); | 24 AndroidHandler(); |
| 25 ~AndroidHandler(); | 25 ~AndroidHandler(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // ApplicationDelegate: | 28 // ApplicationDelegate: |
| 29 void Initialize(ApplicationImpl* app) override; | 29 void Initialize(ApplicationImpl* app) override; |
| 30 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; | 30 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; |
| 31 | 31 |
| 32 // ContentHandlerFactory::Delegate: | 32 // ContentHandlerFactory::Delegate: |
| 33 void RunApplication(ShellPtr shell, URLResponsePtr response) override; | 33 void RunApplication(InterfaceRequest<Application> application_request, |
| 34 URLResponsePtr response) override; |
| 34 | 35 |
| 35 ContentHandlerFactory content_handler_factory_; | 36 ContentHandlerFactory content_handler_factory_; |
| 36 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); | 37 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 bool RegisterAndroidHandlerJni(JNIEnv* env); | 40 bool RegisterAndroidHandlerJni(JNIEnv* env); |
| 40 | 41 |
| 41 } // namespace mojo | 42 } // namespace mojo |
| 42 | 43 |
| 43 #endif // MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ | 44 #endif // MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ |
| OLD | NEW |