Add long running gmail memory benchmark for background tab.
[chromium-blink-merge.git] / mojo / runner / android / android_handler.h
blobc81d2a8626737435cb3765f5874ca9919e1974a2
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.
5 #ifndef MOJO_RUNNER_ANDROID_ANDROID_HANDLER_H_
6 #define MOJO_RUNNER_ANDROID_ANDROID_HANDLER_H_
8 #include <jni.h>
10 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/content_handler_factory.h"
12 #include "mojo/application/public/cpp/interface_factory_impl.h"
13 #include "mojo/application/public/interfaces/content_handler.mojom.h"
15 namespace base {
16 class FilePath;
19 namespace mojo {
20 namespace runner {
22 class AndroidHandler : public ApplicationDelegate,
23 public ContentHandlerFactory::Delegate {
24 public:
25 AndroidHandler();
26 ~AndroidHandler();
28 private:
29 // ApplicationDelegate:
30 void Initialize(ApplicationImpl* app) override;
31 bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
33 // ContentHandlerFactory::Delegate:
34 void RunApplication(InterfaceRequest<Application> application_request,
35 URLResponsePtr response) override;
37 ContentHandlerFactory content_handler_factory_;
38 MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler);
41 bool RegisterAndroidHandlerJni(JNIEnv* env);
43 } // namespace runner
44 } // namespace mojo
46 #endif // MOJO_RUNNER_ANDROID_ANDROID_HANDLER_H_