| 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 SERVICES_ANDROID_JAVA_HANDLER_H_ | 5 #ifndef SERVICES_ANDROID_JAVA_HANDLER_H_ |
| 6 #define SERVICES_ANDROID_JAVA_HANDLER_H_ | 6 #define SERVICES_ANDROID_JAVA_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 11 matching lines...) Expand all Loading... |
| 22 class JavaHandler : public mojo::ApplicationDelegate, | 22 class JavaHandler : public mojo::ApplicationDelegate, |
| 23 public mojo::ContentHandlerFactory::Delegate { | 23 public mojo::ContentHandlerFactory::Delegate { |
| 24 public: | 24 public: |
| 25 JavaHandler(); | 25 JavaHandler(); |
| 26 ~JavaHandler(); | 26 ~JavaHandler(); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 // ApplicationDelegate: | 29 // ApplicationDelegate: |
| 30 void Initialize(mojo::ApplicationImpl* app) override; | 30 void Initialize(mojo::ApplicationImpl* app) override; |
| 31 bool ConfigureIncomingConnection( | 31 bool ConfigureIncomingConnection( |
| 32 mojo::ApplicationConnection* connection) override; | 32 mojo::ApplicationConnection* connection, |
| 33 const std::string& url) override; |
| 33 | 34 |
| 34 // ContentHandlerFactory::Delegate: | 35 // ContentHandlerFactory::Delegate: |
| 35 void RunApplication( | 36 void RunApplication( |
| 36 mojo::InterfaceRequest<mojo::Application> application_request, | 37 mojo::InterfaceRequest<mojo::Application> application_request, |
| 37 mojo::URLResponsePtr response) override; | 38 mojo::URLResponsePtr response) override; |
| 38 | 39 |
| 39 mojo::ContentHandlerFactory content_handler_factory_; | 40 mojo::ContentHandlerFactory content_handler_factory_; |
| 40 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler); | 41 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace android | 44 } // namespace android |
| 44 } // namespace services | 45 } // namespace services |
| 45 | 46 |
| 46 #endif // SERVICES_ANDROID_JAVA_HANDLER_H_ | 47 #endif // SERVICES_ANDROID_JAVA_HANDLER_H_ |
| OLD | NEW |