blob: 969f5a3c058209fed3d67db3e1ca773787cd6299 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2006-2008 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 GPU_NP_UTILS_NP_PLUGIN_OBJECT_FACTORY_H_
#define GPU_NP_UTILS_NP_PLUGIN_OBJECT_FACTORY_H_
#include "base/basictypes.h"
#include "gpu/np_utils/np_headers.h"
namespace np_utils {
class PluginObject;
// Mockable factory base class used to create instances of PluginObject based on
// plugin mime type.
class NPPluginObjectFactory {
public:
virtual PluginObject* CreatePluginObject(NPP npp, NPMIMEType plugin_type);
static NPPluginObjectFactory* get() {
return factory_;
}
protected:
NPPluginObjectFactory();
virtual ~NPPluginObjectFactory();
private:
static NPPluginObjectFactory* factory_;
NPPluginObjectFactory* previous_factory_;
DISALLOW_COPY_AND_ASSIGN(NPPluginObjectFactory);
};
} // namespace np_utils
#endif // GPU_NP_UTILS_NP_PLUGIN_OBJECT_FACTORY_H_
|