| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 public InterfaceFactory<NativeViewport>, | 25 public InterfaceFactory<NativeViewport>, |
| 26 public InterfaceFactory<Gpu> { | 26 public InterfaceFactory<Gpu> { |
| 27 public: | 27 public: |
| 28 NativeViewportApplicationLoader(); | 28 NativeViewportApplicationLoader(); |
| 29 ~NativeViewportApplicationLoader(); | 29 ~NativeViewportApplicationLoader(); |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 // ApplicationLoader implementation. | 32 // ApplicationLoader implementation. |
| 33 void Load(ApplicationManager* manager, | 33 void Load(ApplicationManager* manager, |
| 34 const GURL& url, | 34 const GURL& url, |
| 35 ShellPtr shell, | 35 InterfaceRequest<Application> application_request, |
| 36 LoadCallback callback) override; | 36 LoadCallback callback) override; |
| 37 | 37 |
| 38 void OnApplicationError(ApplicationManager* manager, | 38 void OnApplicationError(ApplicationManager* manager, |
| 39 const GURL& url) override; | 39 const GURL& url) override; |
| 40 | 40 |
| 41 // ApplicationDelegate implementation. | 41 // ApplicationDelegate implementation. |
| 42 bool ConfigureIncomingConnection( | 42 bool ConfigureIncomingConnection( |
| 43 mojo::ApplicationConnection* connection) override; | 43 mojo::ApplicationConnection* connection) override; |
| 44 | 44 |
| 45 // InterfaceFactory<NativeViewport> implementation. | 45 // InterfaceFactory<NativeViewport> implementation. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 57 scoped_refptr<gles2::GpuImpl::State> gpu_state_; | 57 scoped_refptr<gles2::GpuImpl::State> gpu_state_; |
| 58 scoped_ptr<ApplicationImpl> app_; | 58 scoped_ptr<ApplicationImpl> app_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); | 60 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace shell | 63 } // namespace shell |
| 64 } // namespace mojo | 64 } // namespace mojo |
| 65 | 65 |
| 66 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ | 66 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ |
| OLD | NEW |