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

Unified Diff: mojo/examples/pepper_container_app/mojo_ppapi_globals.h

Issue 681203002: Remove mojo/examples/pepper_container_app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: mojo/examples/pepper_container_app/mojo_ppapi_globals.h
diff --git a/mojo/examples/pepper_container_app/mojo_ppapi_globals.h b/mojo/examples/pepper_container_app/mojo_ppapi_globals.h
deleted file mode 100644
index 037d161af018b2e19c80f449a3278d2533bb4acd..0000000000000000000000000000000000000000
--- a/mojo/examples/pepper_container_app/mojo_ppapi_globals.h
+++ /dev/null
@@ -1,89 +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_EXAMPLES_PEPPER_CONTAINER_APP_MOJO_PPAPI_GLOBALS_H_
-#define MOJO_EXAMPLES_PEPPER_CONTAINER_APP_MOJO_PPAPI_GLOBALS_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "mojo/public/cpp/system/core.h"
-#include "ppapi/shared_impl/ppapi_globals.h"
-#include "ppapi/shared_impl/resource_tracker.h"
-
-namespace base {
-class MessageLoopProxy;
-}
-
-namespace mojo {
-namespace examples {
-
-class PluginInstance;
-
-class MojoPpapiGlobals : public ppapi::PpapiGlobals {
- public:
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- virtual ScopedMessagePipeHandle CreateGLES2Context() = 0;
- };
-
- // |delegate| must live longer than this object.
- explicit MojoPpapiGlobals(Delegate* delegate);
- virtual ~MojoPpapiGlobals();
-
- inline static MojoPpapiGlobals* Get() {
- return static_cast<MojoPpapiGlobals*>(PpapiGlobals::Get());
- }
-
- PP_Instance AddInstance(PluginInstance* instance);
- void InstanceDeleted(PP_Instance instance);
- PluginInstance* GetInstance(PP_Instance instance);
-
- ScopedMessagePipeHandle CreateGLES2Context();
-
- // ppapi::PpapiGlobals implementation.
- virtual ppapi::ResourceTracker* GetResourceTracker() override;
- virtual ppapi::VarTracker* GetVarTracker() override;
- virtual ppapi::CallbackTracker* GetCallbackTrackerForInstance(
- PP_Instance instance) override;
- virtual void LogWithSource(PP_Instance instance,
- PP_LogLevel level,
- const std::string& source,
- const std::string& value) override;
- virtual void BroadcastLogWithSource(PP_Module module,
- PP_LogLevel level,
- const std::string& source,
- const std::string& value) override;
- virtual ppapi::thunk::PPB_Instance_API* GetInstanceAPI(
- PP_Instance instance) override;
- virtual ppapi::thunk::ResourceCreationAPI* GetResourceCreationAPI(
- PP_Instance instance) override;
- virtual PP_Module GetModuleForInstance(PP_Instance instance) override;
- virtual ppapi::MessageLoopShared* GetCurrentMessageLoop() override;
- virtual base::TaskRunner* GetFileTaskRunner() override;
- virtual std::string GetCmdLine() override;
- virtual void PreCacheFontForFlash(const void* logfontw) override;
-
- private:
- class MainThreadMessageLoopResource;
-
- // Non-owning pointer.
- Delegate* const delegate_;
-
- // Non-owning pointer.
- PluginInstance* plugin_instance_;
-
- ppapi::ResourceTracker resource_tracker_;
-
- scoped_refptr<MainThreadMessageLoopResource>
- main_thread_message_loop_resource_;
-
- DISALLOW_COPY_AND_ASSIGN(MojoPpapiGlobals);
-};
-
-} // namespace examples
-} // namespace mojo
-
-#endif // MOJO_EXAMPLES_PEPPER_CONTAINER_APP_MOJO_PPAPI_GLOBALS_H_
« no previous file with comments | « mojo/examples/pepper_container_app/interface_list.cc ('k') | mojo/examples/pepper_container_app/mojo_ppapi_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698