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 "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "mojo/application/content_handler_factory.h" | 12 #include "mojo/application/content_handler_factory.h" |
13 #include "mojo/common/tracing_impl.h" | 13 #include "mojo/common/tracing_impl.h" |
14 #include "mojo/public/cpp/application/application_delegate.h" | 14 #include "mojo/public/cpp/application/application_delegate.h" |
15 #include "mojo/public/cpp/application/interface_factory_impl.h" | 15 #include "mojo/public/cpp/application/interface_factory_impl.h" |
16 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom.
h" | 16 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h" |
17 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d
isk_cache.mojom.h" | 17 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d
isk_cache.mojom.h" |
18 | 18 |
19 namespace services { | 19 namespace services { |
20 namespace android { | 20 namespace android { |
21 | 21 |
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(); |
(...skipping 18 matching lines...) Expand all Loading... |
45 mojo::ContentHandlerFactory content_handler_factory_; | 45 mojo::ContentHandlerFactory content_handler_factory_; |
46 mojo::URLResponseDiskCachePtr url_response_disk_cache_; | 46 mojo::URLResponseDiskCachePtr url_response_disk_cache_; |
47 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; | 47 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; |
48 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler); | 48 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace android | 51 } // namespace android |
52 } // namespace services | 52 } // namespace services |
53 | 53 |
54 #endif // SERVICES_ANDROID_JAVA_HANDLER_H_ | 54 #endif // SERVICES_ANDROID_JAVA_HANDLER_H_ |
OLD | NEW |