Chromium Code Reviews| Index: content/common/npobject_util.h |
| diff --git a/content/common/npobject_util.h b/content/common/npobject_util.h |
| index 300bbd3815fbd6719bc887352e443735c2c635f3..7936378851de100bf83b5d1081add317b79217d7 100644 |
| --- a/content/common/npobject_util.h |
| +++ b/content/common/npobject_util.h |
| @@ -8,14 +8,14 @@ |
| #define CONTENT_COMMON_NPOBJECT_UTIL_H_ |
| #pragma once |
| +#include "base/file_path.h" |
| #include "build/build_config.h" |
| +#include "content/common/npobject_stub.h" |
| #if defined(OS_WIN) |
| #include <windows.h> |
| #endif |
| -#include "content/common/npobject_stub.h" |
| - |
| class GURL; |
| class NPObjectProxy; |
| class NPChannelBase; |
| @@ -29,12 +29,15 @@ typedef void *NPIdentifier; |
| // Needs to be called early in the plugin process lifetime, before any |
| // plugin instances are initialized. |
| -void PatchNPNFunctions(); |
| +void PatchNPNFunctions(const FilePath& plugin_path); |
| -// Returns true if the current process is a plugin process, or false if it's a |
| -// renderer process. |
| +// Returns true if the current process is a plugin process, or false otherwise. |
| bool IsPluginProcess(); |
|
Steve Block
2011/09/21 13:19:05
This seems like a strange place for this function.
|
| +// Returns the path of the plugin file that this process hosts. Must only be |
| +// called if this is a plugin process. |
| +const FilePath& GetPluginPath(); |
| + |
| // Creates an object similar to NPIdentifier that can be marshalled. |
| void CreateNPIdentifierParam(NPIdentifier id, NPIdentifier_Param* param); |