| Index: components/native_viewport/native_viewport_impl.h
|
| diff --git a/components/native_viewport/native_viewport_impl.h b/components/native_viewport/native_viewport_impl.h
|
| index 56733e13c0fee4e9ce2c6e9dae3171f59037eb1b..3e72185ee9a799d749e001c37f32bc902f3a3a6c 100644
|
| --- a/components/native_viewport/native_viewport_impl.h
|
| +++ b/components/native_viewport/native_viewport_impl.h
|
| @@ -13,6 +13,7 @@
|
| #include "components/native_viewport/onscreen_context_provider.h"
|
| #include "components/native_viewport/platform_viewport.h"
|
| #include "components/native_viewport/public/interfaces/native_viewport.mojom.h"
|
| +#include "mojo/application/app_lifetime_helper.h"
|
| #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
|
| #include "ui/gfx/geometry/rect.h"
|
|
|
| @@ -36,7 +37,8 @@ class NativeViewportImpl : public mojo::NativeViewport,
|
| public:
|
| NativeViewportImpl(bool is_headless,
|
| const scoped_refptr<gles2::GpuState>& gpu_state,
|
| - mojo::InterfaceRequest<mojo::NativeViewport> request);
|
| + mojo::InterfaceRequest<mojo::NativeViewport> request,
|
| + scoped_ptr<mojo::AppRefCount> app_refcount);
|
| ~NativeViewportImpl() override;
|
|
|
| // NativeViewport implementation.
|
| @@ -69,6 +71,7 @@ class NativeViewportImpl : public mojo::NativeViewport,
|
| void AckEvent(int32 pointer_id);
|
|
|
| bool is_headless_;
|
| + scoped_ptr<mojo::AppRefCount> app_refcount_;
|
| scoped_ptr<PlatformViewport> platform_viewport_;
|
| scoped_ptr<OnscreenContextProvider> context_provider_;
|
| bool sent_metrics_;
|
|
|