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

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

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « mojo/shell/android/DEPS ('k') | mojo/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_
6 #define MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_
7
8 #include <jni.h>
9
10 #include "mojo/application/content_handler_factory.h"
11 #include "mojo/public/cpp/application/application_delegate.h"
12 #include "mojo/public/cpp/application/interface_factory_impl.h"
13 #include "mojo/services/public/interfaces/content_handler/content_handler.mojom. h"
14
15 namespace base {
16 class FilePath;
17 }
18
19 namespace mojo {
20
21 class AndroidHandler : public ApplicationDelegate,
22 public ContentHandlerFactory::Delegate {
23 public:
24 AndroidHandler() : content_handler_factory_(this) {}
25 virtual ~AndroidHandler() {}
26
27 private:
28 // ApplicationDelegate:
29 void Initialize(ApplicationImpl* app) override;
30 bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
31
32 // ContentHandlerFactory::Delegate:
33 void RunApplication(ShellPtr shell, URLResponsePtr response) override;
34
35 ContentHandlerFactory content_handler_factory_;
36 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler);
37 };
38
39 bool RegisterAndroidHandlerJni(JNIEnv* env);
40
41 } // namespace mojo
42
43 #endif // MOJO_SHELL_ANDROID_CONTENT_HANDLER_H_
OLDNEW
« no previous file with comments | « mojo/shell/android/DEPS ('k') | mojo/shell/android/android_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698