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

Side by Side Diff: services/android/java_handler.h

Issue 1464313002: Move //service/android to //service/java_handler (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 1 month 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
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 SERVICES_ANDROID_JAVA_HANDLER_H_
6 #define SERVICES_ANDROID_JAVA_HANDLER_H_
7
8 #include <jni.h>
9
10 #include "base/files/file_path.h"
11 #include "base/single_thread_task_runner.h"
12 #include "mojo/application/content_handler_factory.h"
13 #include "mojo/common/tracing_impl.h"
14 #include "mojo/public/cpp/application/application_delegate.h"
15 #include "mojo/public/cpp/application/interface_factory_impl.h"
16 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h"
17 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac he.mojom.h"
18
19 namespace services {
20 namespace android {
21
22 class JavaHandler : public mojo::ApplicationDelegate,
23 public mojo::ContentHandlerFactory::Delegate {
24 public:
25 JavaHandler();
26 ~JavaHandler();
27
28 private:
29 // ApplicationDelegate:
30 void Initialize(mojo::ApplicationImpl* app) override;
31 bool ConfigureIncomingConnection(
32 mojo::ApplicationConnection* connection) override;
33
34 // ContentHandlerFactory::Delegate:
35 void RunApplication(
36 mojo::InterfaceRequest<mojo::Application> application_request,
37 mojo::URLResponsePtr response) override;
38
39 void GetApplication(base::FilePath* archive_path,
40 base::FilePath* cache_dir,
41 mojo::URLResponsePtr response,
42 const base::Closure& callback);
43
44 mojo::TracingImpl tracing_;
45 mojo::ContentHandlerFactory content_handler_factory_;
46 mojo::URLResponseDiskCachePtr url_response_disk_cache_;
47 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_;
48 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler);
49 };
50
51 } // namespace android
52 } // namespace services
53
54 #endif // SERVICES_ANDROID_JAVA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698