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

Side by Side Diff: shell/android/native_viewport_application_loader.h

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: hate Created 5 years, 9 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_delegate.h"
9 #include "mojo/public/cpp/application/interface_factory.h" 9 #include "mojo/public/cpp/application/interface_factory.h"
10 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h" 10 #include "mojo/services/gpu/public/interfaces/gpu.mojom.h"
(...skipping 20 matching lines...) Expand all
31 private: 31 private:
32 // ApplicationLoader implementation. 32 // ApplicationLoader implementation.
33 void Load(const GURL& url, 33 void Load(const GURL& url,
34 InterfaceRequest<Application> application_request) override; 34 InterfaceRequest<Application> application_request) override;
35 35
36 void OnApplicationError(ApplicationManager* manager, 36 void OnApplicationError(ApplicationManager* manager,
37 const GURL& url) override; 37 const GURL& url) override;
38 38
39 // ApplicationDelegate implementation. 39 // ApplicationDelegate implementation.
40 bool ConfigureIncomingConnection( 40 bool ConfigureIncomingConnection(
41 mojo::ApplicationConnection* connection) override; 41 mojo::ApplicationConnection* connection,
42 const std::string& url) override;
42 43
43 // InterfaceFactory<NativeViewport> implementation. 44 // InterfaceFactory<NativeViewport> implementation.
44 void Create(ApplicationConnection* connection, 45 void Create(ApplicationConnection* connection,
45 InterfaceRequest<NativeViewport> request) override; 46 InterfaceRequest<NativeViewport> request) override;
46 47
47 // InterfaceFactory<Gpu> implementation. 48 // InterfaceFactory<Gpu> implementation.
48 void Create(ApplicationConnection* connection, 49 void Create(ApplicationConnection* connection,
49 InterfaceRequest<Gpu> request) override; 50 InterfaceRequest<Gpu> request) override;
50 51
51 // InterfaceFactory<Keyboard> implementation. 52 // InterfaceFactory<Keyboard> implementation.
52 void Create(ApplicationConnection* connection, 53 void Create(ApplicationConnection* connection,
53 InterfaceRequest<Keyboard> request) override; 54 InterfaceRequest<Keyboard> request) override;
54 55
55 scoped_refptr<gles2::GpuImpl::State> gpu_state_; 56 scoped_refptr<gles2::GpuImpl::State> gpu_state_;
56 scoped_ptr<ApplicationImpl> app_; 57 scoped_ptr<ApplicationImpl> app_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); 59 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader);
59 }; 60 };
60 61
61 } // namespace shell 62 } // namespace shell
62 } // namespace mojo 63 } // namespace mojo
63 64
64 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 65 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698