diff options
author | ben <ben@chromium.org> | 2015-04-27 14:52:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-27 21:52:56 +0000 |
commit | ee05293936b654dfbc42889ba374bba21bd5c453 (patch) | |
tree | de694f31a0a2f21e60750a9b92902127f08293fc /mojo/shell/android/native_viewport_application_loader.h | |
parent | 9cfdfc07ef3042e059d5a51a91cbe4f13cfca341 (diff) | |
download | chromium_src-ee05293936b654dfbc42889ba374bba21bd5c453.zip chromium_src-ee05293936b654dfbc42889ba374bba21bd5c453.tar.gz chromium_src-ee05293936b654dfbc42889ba374bba21bd5c453.tar.bz2 |
Separate mojo/shell into a runner and the application manager (shell)
R=sky@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1091513005
Cr-Commit-Position: refs/heads/master@{#327148}
Diffstat (limited to 'mojo/shell/android/native_viewport_application_loader.h')
-rw-r--r-- | mojo/shell/android/native_viewport_application_loader.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/mojo/shell/android/native_viewport_application_loader.h b/mojo/shell/android/native_viewport_application_loader.h deleted file mode 100644 index 16bc2aa..0000000 --- a/mojo/shell/android/native_viewport_application_loader.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ -#define MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ - -#include "components/gles2/gpu_impl.h" -#include "components/gpu/public/interfaces/gpu.mojom.h" -#include "components/native_viewport/public/interfaces/native_viewport.mojom.h" -#include "mojo/public/cpp/application/application_delegate.h" -#include "mojo/public/cpp/application/interface_factory.h" -#include "mojo/shell/application_manager/application_loader.h" - -namespace gles2 { -class GpuState; -} - -namespace mojo { - -class ApplicationImpl; - -namespace shell { - -class NativeViewportApplicationLoader : public ApplicationLoader, - public ApplicationDelegate, - public InterfaceFactory<NativeViewport>, - public InterfaceFactory<Gpu> { - public: - NativeViewportApplicationLoader(); - ~NativeViewportApplicationLoader(); - - private: - // ApplicationLoader implementation. - void Load(const GURL& url, - InterfaceRequest<Application> application_request) override; - - // ApplicationDelegate implementation. - bool ConfigureIncomingConnection(ApplicationConnection* connection) override; - - // InterfaceFactory<NativeViewport> implementation. - void Create(ApplicationConnection* connection, - InterfaceRequest<NativeViewport> request) override; - - // InterfaceFactory<Gpu> implementation. - void Create(ApplicationConnection* connection, - InterfaceRequest<Gpu> request) override; - - scoped_refptr<gles2::GpuState> gpu_state_; - scoped_ptr<ApplicationImpl> app_; - - DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); -}; - -} // namespace shell -} // namespace mojo - -#endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ |