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

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

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased Created 4 years, 6 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
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 SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ 5 #ifndef SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_
6 #define SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ 6 #define SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "mojo/application/content_handler_factory.h" 12 #include "mojo/application/content_handler_factory.h"
13 #include "mojo/common/tracing_impl.h" 13 #include "mojo/common/tracing_impl.h"
14 #include "mojo/public/cpp/application/application_delegate.h" 14 #include "mojo/public/cpp/application/application_impl_base.h"
15 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h" 15 #include "mojo/services/content_handler/interfaces/content_handler.mojom.h"
16 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac he.mojom.h" 16 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac he.mojom.h"
17 17
18 namespace services { 18 namespace services {
19 namespace android { 19 namespace android {
20 20
21 class JavaHandler : public mojo::ApplicationDelegate, 21 class JavaHandler : public mojo::ApplicationImplBase,
22 public mojo::ContentHandlerFactory::Delegate { 22 public mojo::ContentHandlerFactory::Delegate {
23 public: 23 public:
24 JavaHandler(); 24 JavaHandler();
25 ~JavaHandler(); 25 ~JavaHandler();
26 26
27 private: 27 private:
28 // ApplicationDelegate: 28 // ApplicationImplBase:
29 void Initialize(mojo::ApplicationImpl* app) override; 29 void OnInitialize() override;
30 bool ConfigureIncomingConnection( 30 bool OnAcceptConnection(
31 mojo::ServiceProviderImpl* service_provider_impl) override; 31 mojo::ServiceProviderImpl* service_provider_impl) override;
32 32
33 // ContentHandlerFactory::Delegate: 33 // ContentHandlerFactory::Delegate:
34 void RunApplication( 34 void RunApplication(
35 mojo::InterfaceRequest<mojo::Application> application_request, 35 mojo::InterfaceRequest<mojo::Application> application_request,
36 mojo::URLResponsePtr response) override; 36 mojo::URLResponsePtr response) override;
37 37
38 void GetApplication(base::FilePath* archive_path, 38 void GetApplication(base::FilePath* archive_path,
39 base::FilePath* cache_dir, 39 base::FilePath* cache_dir,
40 mojo::URLResponsePtr response, 40 mojo::URLResponsePtr response,
41 const base::Closure& callback); 41 const base::Closure& callback);
42 42
43 mojo::TracingImpl tracing_; 43 mojo::TracingImpl tracing_;
44 mojo::URLResponseDiskCachePtr url_response_disk_cache_; 44 mojo::URLResponseDiskCachePtr url_response_disk_cache_;
45 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_; 45 scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_;
46 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler); 46 MOJO_DISALLOW_COPY_AND_ASSIGN(JavaHandler);
47 }; 47 };
48 48
49 } // namespace android 49 } // namespace android
50 } // namespace services 50 } // namespace services
51 51
52 #endif // SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_ 52 #endif // SERVICES_JAVA_HANDLER_JAVA_HANDLER_H_
OLDNEW
« no previous file with comments | « services/gfx/compositor/tests/scheduling_apptest.cc ('k') | services/java_handler/java_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698