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 "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" | 13 #include "mojo/public/cpp/application/interface_factory_impl.h" |
14 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom.
h" | 14 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h" |
15 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d
isk_cache.mojom.h" | 15 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d
isk_cache.mojom.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class FilePath; | 18 class FilePath; |
19 } | 19 } |
20 | 20 |
21 namespace shell { | 21 namespace shell { |
22 | 22 |
23 class AndroidHandler : public mojo::ApplicationDelegate, | 23 class AndroidHandler : public mojo::ApplicationDelegate, |
24 public mojo::ContentHandlerFactory::Delegate { | 24 public mojo::ContentHandlerFactory::Delegate { |
(...skipping 22 matching lines...) Expand all Loading... |
47 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; | 47 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; |
48 | 48 |
49 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); | 49 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); |
50 }; | 50 }; |
51 | 51 |
52 bool RegisterAndroidHandlerJni(JNIEnv* env); | 52 bool RegisterAndroidHandlerJni(JNIEnv* env); |
53 | 53 |
54 } // namespace shell | 54 } // namespace shell |
55 | 55 |
56 #endif // MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ | 56 #endif // MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ |
OLD | NEW |