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

Unified Diff: content/common/npobject_util.h

Issue 7982026: Add GetPluginPath() to npobject_util to avoid content/plugin/ include from npobject_stub.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « content/common/npobject_stub.cc ('k') | content/common/npobject_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « content/common/npobject_stub.cc ('k') | content/common/npobject_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698