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

Unified Diff: remoting/client/pepper/pepper_plugin.h

Issue 2857011: Convert chromoting to pepperv2 API. (Closed)
Patch Set: break dep Created 10 years, 6 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 | « remoting/client/pepper/pepper_main.cc ('k') | remoting/client/pepper/pepper_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/pepper/pepper_plugin.h
diff --git a/remoting/client/pepper/pepper_plugin.h b/remoting/client/pepper/pepper_plugin.h
deleted file mode 100644
index 723dc90ad0988696f8a04941e50e0c4efa652693..0000000000000000000000000000000000000000
--- a/remoting/client/pepper/pepper_plugin.h
+++ /dev/null
@@ -1,106 +0,0 @@
-// Copyright (c) 2010 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 REMOTING_CLIENT_PEPPER_PEPPER_PLUGIN_H_
-#define REMOTING_CLIENT_PEPPER_PEPPER_PLUGIN_H_
-
-#include "third_party/npapi/bindings/npapi.h"
-#include "third_party/npapi/bindings/npapi_extensions.h"
-#include "third_party/npapi/bindings/nphostapi.h"
-
-namespace pepper {
-
-class PepperPlugin {
- public:
- // This class stores information about the plugin that cannot be instantiated
- // as part of the PepperPlugin class because it is required before the
- // PepperPlugin has been created.
- class Info {
- public:
- // True if these fields have been initialized.
- bool initialized;
-
- // MIME type and description.
- const char* mime_description;
-
- // Name of plugin (shown in about:plugins).
- const char* plugin_name;
-
- // Short description of plugin (shown in about:plugins).
- const char* plugin_description;
- };
-
- PepperPlugin(NPNetscapeFuncs* browser_funcs, NPP instance);
- virtual ~PepperPlugin();
-
- NPNetscapeFuncs* browser() const { return browser_funcs_; }
- NPNExtensions* extensions() const { return extensions_; }
- NPP instance() const { return instance_; }
-
- // Virtual methods to be implemented by the plugin subclass.
-
- virtual NPError New(NPMIMEType pluginType, int16 argc,
- char* argn[], char* argv[]) {
- return NPERR_GENERIC_ERROR;
- }
-
- virtual NPError Destroy(NPSavedData** save) {
- return NPERR_GENERIC_ERROR;
- }
-
- virtual NPError SetWindow(NPWindow* window) {
- return NPERR_GENERIC_ERROR;
- }
-
- virtual NPError NewStream(NPMIMEType type, NPStream* stream,
- NPBool seekable, uint16* stype) {
- return NPERR_GENERIC_ERROR;
- }
-
- virtual NPError DestroyStream(NPStream* stream, NPReason reason) {
- return NPERR_GENERIC_ERROR;
- }
-
- virtual void StreamAsFile(NPStream* stream, const char* fname) {
- }
-
- virtual int32 WriteReady(NPStream* stream) {
- return 0;
- }
-
- virtual int32 Write(NPStream* stream, int32 offset, int32 len, void* buffer) {
- return -1;
- }
-
- virtual void Print(NPPrint* platformPrint) {
- }
-
- virtual int16 HandleEvent(void* event) {
- return false;
- }
-
- virtual void URLNotify(const char* url, NPReason reason, void* nofifyData) {
- }
-
- virtual NPError GetValue(NPPVariable variable, void* value) {
- return NPERR_GENERIC_ERROR;
- }
-
- virtual NPError SetValue(NPNVariable variable, void* value) {
- return NPERR_GENERIC_ERROR;
- }
-
- private:
- // Browser callbacks.
- NPNetscapeFuncs* browser_funcs_;
- NPNExtensions* extensions_;
-
- NPP instance_;
-
- DISALLOW_COPY_AND_ASSIGN(PepperPlugin);
-};
-
-} // namespace pepper
-
-#endif // REMOTING_CLIENT_PEPPER_PEPPER_PLUGIN_H_
« no previous file with comments | « remoting/client/pepper/pepper_main.cc ('k') | remoting/client/pepper/pepper_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698