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

Side by Side 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: Removed superfluous PluginThread::plugin_path_ 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/npobject_stub.cc ('k') | content/common/npobject_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Helper functions that are used by the NPObject proxy and stub. 5 // Helper functions that are used by the NPObject proxy and stub.
6 6
7 #ifndef CONTENT_COMMON_NPOBJECT_UTIL_H_ 7 #ifndef CONTENT_COMMON_NPOBJECT_UTIL_H_
8 #define CONTENT_COMMON_NPOBJECT_UTIL_H_ 8 #define CONTENT_COMMON_NPOBJECT_UTIL_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 13 matching lines...) Expand all
24 struct NPIdentifier_Param; 24 struct NPIdentifier_Param;
25 struct NPVariant_Param; 25 struct NPVariant_Param;
26 26
27 typedef _NPVariant NPVariant; 27 typedef _NPVariant NPVariant;
28 typedef void *NPIdentifier; 28 typedef void *NPIdentifier;
29 29
30 // Needs to be called early in the plugin process lifetime, before any 30 // Needs to be called early in the plugin process lifetime, before any
31 // plugin instances are initialized. 31 // plugin instances are initialized.
32 void PatchNPNFunctions(); 32 void PatchNPNFunctions();
33 33
34 // Returns true if the current process is a plugin process, or false if it's a 34 // Returns true if the current process is a plugin process, or false otherwise.
35 // renderer process.
36 bool IsPluginProcess(); 35 bool IsPluginProcess();
37 36
38 // Creates an object similar to NPIdentifier that can be marshalled. 37 // Creates an object similar to NPIdentifier that can be marshalled.
39 void CreateNPIdentifierParam(NPIdentifier id, NPIdentifier_Param* param); 38 void CreateNPIdentifierParam(NPIdentifier id, NPIdentifier_Param* param);
40 39
41 // Creates an NPIdentifier from the marshalled object. 40 // Creates an NPIdentifier from the marshalled object.
42 NPIdentifier CreateNPIdentifier(const NPIdentifier_Param& param); 41 NPIdentifier CreateNPIdentifier(const NPIdentifier_Param& param);
43 42
44 // Creates an object similar to NPVariant that can be marshalled. 43 // Creates an object similar to NPVariant that can be marshalled.
45 // If the containing NPObject happens to be an NPObject, then a stub 44 // If the containing NPObject happens to be an NPObject, then a stub
(...skipping 18 matching lines...) Expand all
64 #if defined(OS_WIN) 63 #if defined(OS_WIN)
65 // Given a plugin's HWND, returns an event associated with the TabContents 64 // Given a plugin's HWND, returns an event associated with the TabContents
66 // that's set when inside a messagebox. This tells the plugin process that 65 // that's set when inside a messagebox. This tells the plugin process that
67 // the message queue should be pumped (as what would happen if everything was 66 // the message queue should be pumped (as what would happen if everything was
68 // in-process). This avoids deadlocks when a plugin invokes javascript that 67 // in-process). This avoids deadlocks when a plugin invokes javascript that
69 // causes a message box to come up. 68 // causes a message box to come up.
70 HANDLE GetMessageBoxEvent(HWND hwnd); 69 HANDLE GetMessageBoxEvent(HWND hwnd);
71 #endif // defined(OS_WIN) 70 #endif // defined(OS_WIN)
72 71
73 #endif // CONTENT_COMMON_NPOBJECT_UTIL_H_ 72 #endif // CONTENT_COMMON_NPOBJECT_UTIL_H_
OLDNEW
« 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