| 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_JAVA_HANDLER_JAVA_HANDLER_H_ | 5 #ifndef SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ |
| 6 #define SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ | 6 #define SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class JavaHandler : public mojo::ApplicationDelegate, | 21 class JavaHandler : public mojo::ApplicationDelegate, |
| 22 public mojo::ContentHandlerFactory::Delegate { | 22 public mojo::ContentHandlerFactory::Delegate { |
| 23 public: | 23 public: |
| 24 JavaHandler(); | 24 JavaHandler(); |
| 25 ~JavaHandler(); | 25 ~JavaHandler(); |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // ApplicationDelegate: | 28 // ApplicationDelegate: |
| 29 void Initialize(mojo::ApplicationImpl* app) override; | 29 void Initialize(mojo::ApplicationImpl* app) override; |
| 30 bool ConfigureIncomingConnection( | 30 bool ConfigureIncomingConnection( |
| 31 mojo::ApplicationConnection* connection) override; | 31 mojo::ServiceProviderImpl* service_provider_impl) override; |
| 32 | 32 |
| 33 // ContentHandlerFactory::Delegate: | 33 // ContentHandlerFactory::Delegate: |
| 34 void RunApplication( | 34 void RunApplication( |
| 35 mojo::InterfaceRequest<mojo::Application> application_request, | 35 mojo::InterfaceRequest<mojo::Application> application_request, |
| 36 mojo::URLResponsePtr response) override; | 36 mojo::URLResponsePtr response) override; |
| 37 | 37 |
| 38 void GetApplication(base::FilePath* archive_path, | 38 void GetApplication(base::FilePath* archive_path, |
| 39 base::FilePath* cache_dir, | 39 base::FilePath* cache_dir, |
| 40 mojo::URLResponsePtr response, | 40 mojo::URLResponsePtr response, |
| 41 const base::Closure& callback); | 41 const base::Closure& callback); |
| 42 | 42 |
| 43 mojo::TracingImpl tracing_; | 43 mojo::TracingImpl tracing_; |
| 44 mojo::ContentHandlerFactory content_handler_factory_; | 44 mojo::ContentHandlerFactory content_handler_factory_; |
| 45 mojo::URLResponseDiskCachePtr url_response_disk_cache_; | 45 mojo::URLResponseDiskCachePtr url_response_disk_cache_; |
| 46 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; | 46 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; |
| 47 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler); | 47 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace android | 50 } // namespace android |
| 51 } // namespace services | 51 } // namespace services |
| 52 | 52 |
| 53 #endif // SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ | 53 #endif // SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ |
| OLD | NEW |