| 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/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" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 ~NativeViewportApplicationLoader(); | 28 ~NativeViewportApplicationLoader(); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 // ApplicationLoader implementation. | 31 // ApplicationLoader implementation. |
| 32 void Load( | 32 void Load( |
| 33 const GURL& url, | 33 const GURL& url, |
| 34 mojo::InterfaceRequest<mojo::Application> application_request) override; | 34 mojo::InterfaceRequest<mojo::Application> application_request) override; |
| 35 | 35 |
| 36 // mojo::ApplicationDelegate implementation. | 36 // mojo::ApplicationDelegate implementation. |
| 37 bool ConfigureIncomingConnection( | 37 bool ConfigureIncomingConnection( |
| 38 mojo::ApplicationConnection* connection) override; | 38 mojo::ServiceProviderImpl* service_provider_impl) override; |
| 39 | 39 |
| 40 scoped_refptr<gles2::GpuState> gpu_state_; | 40 scoped_refptr<gles2::GpuState> gpu_state_; |
| 41 scoped_ptr<mojo::ApplicationImpl> app_; | 41 scoped_ptr<mojo::ApplicationImpl> app_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); | 43 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace shell | 46 } // namespace shell |
| 47 | 47 |
| 48 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ | 48 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ |
| OLD | NEW |