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

Unified Diff: webkit/plugins/ppapi/ppapi_interface_factory.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 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
« no previous file with comments | « webkit/plugins/ppapi/plugin_object.cc ('k') | webkit/plugins/ppapi/ppapi_interface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppapi_interface_factory.h
===================================================================
--- webkit/plugins/ppapi/ppapi_interface_factory.h (revision 213561)
+++ webkit/plugins/ppapi/ppapi_interface_factory.h (working copy)
@@ -1,56 +0,0 @@
-// Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_INTERFACE_FACTORY_H_
-#define WEBKIT_PLUGINS_PPAPI_PLUGIN_INTERFACE_FACTORY_H_
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/lazy_instance.h"
-#include "webkit/plugins/webkit_plugins_export.h"
-
-namespace webkit {
-namespace ppapi {
-
-// This class provides functionality to manage custom PPAPI interface
-// factories.
-class PpapiInterfaceFactoryManager {
- public:
- typedef const void* (InterfaceFactory)(const std::string& interface_name);
-
- // Registers a custom PPAPI interface factory.
- WEBKIT_PLUGINS_EXPORT void RegisterFactory(InterfaceFactory* factory);
-
- // Unregisters the custom PPAPI interface factory passed in.
- WEBKIT_PLUGINS_EXPORT void UnregisterFactory(InterfaceFactory* factory);
-
- // Returns a pointer to the interface identified by the name passed in.
- // Returns NULL if no factory handles this interface.
- const void* GetInterface(const std::string& interface_name);
-
- // Returns a pointer to the global instance of the
- // PpapiInterfaceFactoryManager class.
- WEBKIT_PLUGINS_EXPORT static PpapiInterfaceFactoryManager* GetInstance();
-
- private:
- friend struct base::DefaultLazyInstanceTraits<PpapiInterfaceFactoryManager>;
-
- PpapiInterfaceFactoryManager();
- ~PpapiInterfaceFactoryManager();
-
- typedef std::vector<InterfaceFactory*> FactoryList;
-
- // List of registered factories.
- FactoryList interface_factory_list_;
-
- DISALLOW_COPY_AND_ASSIGN(PpapiInterfaceFactoryManager);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_INTERFACE_FACTORY_H_
-
« no previous file with comments | « webkit/plugins/ppapi/plugin_object.cc ('k') | webkit/plugins/ppapi/ppapi_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698