| 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 SHELL_ANDROID_ANDROID_HANDLER_H_ | 5 #ifndef SHELL_ANDROID_ANDROID_HANDLER_H_ |
| 6 #define SHELL_ANDROID_ANDROID_HANDLER_H_ | 6 #define SHELL_ANDROID_ANDROID_HANDLER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "mojo/application/content_handler_factory.h" | 11 #include "mojo/application/content_handler_factory.h" |
| 12 #include "mojo/public/cpp/application/application_delegate.h" | 12 #include "mojo/public/cpp/application/application_delegate.h" |
| 13 #include "mojo/public/cpp/application/interface_factory_impl.h" | |
| 14 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h" | 13 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h" |
| 15 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac
he.mojom.h" | 14 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac
he.mojom.h" |
| 16 | 15 |
| 17 namespace base { | 16 namespace base { |
| 18 class FilePath; | 17 class FilePath; |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace shell { | 20 namespace shell { |
| 22 | 21 |
| 23 class AndroidHandler : public mojo::ApplicationDelegate, | 22 class AndroidHandler : public mojo::ApplicationDelegate, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 47 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; | 46 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; |
| 48 | 47 |
| 49 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); | 48 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 bool RegisterAndroidHandlerJni(JNIEnv* env); | 51 bool RegisterAndroidHandlerJni(JNIEnv* env); |
| 53 | 52 |
| 54 } // namespace shell | 53 } // namespace shell |
| 55 | 54 |
| 56 #endif // SHELL_ANDROID_ANDROID_HANDLER_H_ | 55 #endif // SHELL_ANDROID_ANDROID_HANDLER_H_ |
| OLD | NEW |