Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: shell/android/android_handler.h

Issue 1061313003: Introduce intent manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « shell/BUILD.gn ('k') | shell/android/android_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "mojo/application/content_handler_factory.h" 10 #include "mojo/application/content_handler_factory.h"
11 #include "mojo/public/cpp/application/application_delegate.h" 11 #include "mojo/public/cpp/application/application_delegate.h"
12 #include "mojo/public/cpp/application/interface_factory_impl.h" 12 #include "mojo/public/cpp/application/interface_factory_impl.h"
13 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h" 13 #include "mojo/services/content_handler/public/interfaces/content_handler.mojom. h"
14 #include "shell/android/intent_receiver_manager_factory.h"
14 15
15 namespace base { 16 namespace base {
16 class FilePath; 17 class FilePath;
17 } 18 }
18 19
19 namespace mojo { 20 namespace mojo {
20 namespace shell { 21 namespace shell {
21 22
22 class AndroidHandler : public ApplicationDelegate, 23 class AndroidHandler : public ApplicationDelegate,
23 public ContentHandlerFactory::Delegate { 24 public ContentHandlerFactory::Delegate {
24 public: 25 public:
25 AndroidHandler(); 26 AndroidHandler();
26 ~AndroidHandler(); 27 ~AndroidHandler();
27 28
28 private: 29 private:
29 // ApplicationDelegate: 30 // ApplicationDelegate:
30 void Initialize(ApplicationImpl* app) override; 31 void Initialize(ApplicationImpl* app) override;
31 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; 32 bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
32 33
33 // ContentHandlerFactory::Delegate: 34 // ContentHandlerFactory::Delegate:
34 void RunApplication(InterfaceRequest<Application> application_request, 35 void RunApplication(InterfaceRequest<Application> application_request,
35 URLResponsePtr response) override; 36 URLResponsePtr response) override;
36 37
37 ContentHandlerFactory content_handler_factory_; 38 ContentHandlerFactory content_handler_factory_;
39 IntentReceiverManagerFactory intent_receiver_manager_factory_;
40
38 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler); 41 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler);
39 }; 42 };
40 43
41 bool RegisterAndroidHandlerJni(JNIEnv* env); 44 bool RegisterAndroidHandlerJni(JNIEnv* env);
42 45
43 } // namespace shell 46 } // namespace shell
44 } // namespace mojo 47 } // namespace mojo
45 48
46 #endif // MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_ 49 #endif // MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_
OLDNEW
« no previous file with comments | « shell/BUILD.gn ('k') | shell/android/android_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698