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

Side by Side Diff: shell/android/native_viewport_application_loader.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 MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 5 #ifndef MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
6 #define MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 6 #define MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
7 7
8 #include "mojo/public/cpp/application/application_delegate.h" 8 #include "mojo/public/cpp/application/application_impl_base.h"
9 #include "mojo/services/gpu/interfaces/gpu.mojom.h" 9 #include "mojo/services/gpu/interfaces/gpu.mojom.h"
10 #include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h" 10 #include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h"
11 #include "services/gles2/gpu_impl.h" 11 #include "services/gles2/gpu_impl.h"
12 #include "shell/application_manager/application_loader.h" 12 #include "shell/application_manager/application_loader.h"
13 13
14 namespace gles2 { 14 namespace gles2 {
15 class GpuState; 15 class GpuState;
16 } 16 }
17 17
18 namespace mojo {
19 class ApplicationImpl;
20 } // namespace mojo
21
22 namespace shell { 18 namespace shell {
23 19
24 class NativeViewportApplicationLoader : public ApplicationLoader, 20 class NativeViewportApplicationLoader : public ApplicationLoader,
25 public mojo::ApplicationDelegate { 21 public mojo::ApplicationImplBase {
26 public: 22 public:
27 NativeViewportApplicationLoader(); 23 NativeViewportApplicationLoader();
28 ~NativeViewportApplicationLoader(); 24 ~NativeViewportApplicationLoader();
29 25
30 private: 26 private:
31 // ApplicationLoader implementation. 27 // ApplicationLoader implementation.
32 void Load( 28 void Load(
33 const GURL& url, 29 const GURL& url,
34 mojo::InterfaceRequest<mojo::Application> application_request) override; 30 mojo::InterfaceRequest<mojo::Application> application_request) override;
35 31
36 // mojo::ApplicationDelegate implementation. 32 // mojo::ApplicationImplBase override.
37 bool ConfigureIncomingConnection( 33 bool OnAcceptConnection(
38 mojo::ServiceProviderImpl* service_provider_impl) override; 34 mojo::ServiceProviderImpl* service_provider_impl) override;
39 35
40 scoped_refptr<gles2::GpuState> gpu_state_; 36 scoped_refptr<gles2::GpuState> gpu_state_;
41 scoped_ptr<mojo::ApplicationImpl> app_;
42 37
43 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); 38 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader);
44 }; 39 };
45 40
46 } // namespace shell 41 } // namespace shell
47 42
48 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 43 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « shell/android/android_handler_loader.cc ('k') | shell/android/native_viewport_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698