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

Unified Diff: content/child/npapi/npobject_util.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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/child/npapi/npobject_stub.cc ('k') | content/child/npapi/npobject_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/npobject_util.h
diff --git a/content/child/npapi/npobject_util.h b/content/child/npapi/npobject_util.h
deleted file mode 100644
index 97a848289c26afc116dba77a80cc1e16207b6425..0000000000000000000000000000000000000000
--- a/content/child/npapi/npobject_util.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2013 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.
-//
-// Helper functions that are used by the NPObject proxy and stub.
-
-#ifndef CONTENT_CHILD_NPAPI_NPOBJECT_UTIL_H_
-#define CONTENT_CHILD_NPAPI_NPOBJECT_UTIL_H_
-
-#include "build/build_config.h"
-
-#if defined(OS_WIN)
-#include <windows.h>
-#endif
-
-#include "content/child/npapi/npobject_stub.h"
-
-class GURL;
-
-struct _NPVariant;
-
-typedef _NPVariant NPVariant;
-typedef void *NPIdentifier;
-
-namespace content {
-class NPChannelBase;
-struct NPIdentifier_Param;
-struct NPVariant_Param;
-
-// Needs to be called early in the plugin process lifetime, before any
-// plugin instances are initialized.
-void PatchNPNFunctions();
-
-// Returns true if the current process is a plugin process, or false otherwise.
-bool IsPluginProcess();
-
-// Creates an object similar to NPIdentifier that can be marshalled.
-void CreateNPIdentifierParam(NPIdentifier id, NPIdentifier_Param* param);
-
-// Creates an NPIdentifier from the marshalled object.
-NPIdentifier CreateNPIdentifier(const NPIdentifier_Param& param);
-
-// Creates an object similar to NPVariant that can be marshalled.
-// If the containing NPObject happens to be an NPObject, then a stub
-// is created around it and param holds the routing id for it.
-// If release is true, the NPVariant object is released (except if
-// it contains an NPObject, since the stub will manage its lifetime).
-void CreateNPVariantParam(const NPVariant& variant,
- NPChannelBase* channel,
- NPVariant_Param* param,
- bool release,
- int render_view_id,
- const GURL& page_url);
-
-// Creates an NPVariant from the marshalled object.
-// Returns true on success.
-bool CreateNPVariant(const NPVariant_Param& param,
- NPChannelBase* channel,
- NPVariant* result,
- int render_view_id,
- const GURL& page_url);
-
-#if defined(OS_WIN)
-// Given a plugin's HWND, returns an event associated with the WebContentsImpl
-// that's set when inside a messagebox. This tells the plugin process that
-// the message queue should be pumped (as what would happen if everything was
-// in-process). This avoids deadlocks when a plugin invokes javascript that
-// causes a message box to come up.
-HANDLE GetMessageBoxEvent(HWND hwnd);
-#endif // defined(OS_WIN)
-
-} // namespace content
-
-#endif // CONTENT_CHILD_NPAPI_NPOBJECT_UTIL_H_
« no previous file with comments | « content/child/npapi/npobject_stub.cc ('k') | content/child/npapi/npobject_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698