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

Side by Side Diff: chrome/default_plugin/plugin_main.h

Issue 2813047: Move default_plugin from webkit/ to chrome/ (Closed)
Patch Set: fix windows? Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include <algorithm> 5 #include <algorithm>
6 #include <string> 6 #include <string>
7 7
8 #include "third_party/npapi/bindings/npapi.h" 8 #include "third_party/npapi/bindings/npapi.h"
9 #include "third_party/npapi/bindings/nphostapi.h" 9 #include "third_party/npapi/bindings/nphostapi.h"
10 10
11 namespace default_plugin { 11 namespace default_plugin {
12 12
13 extern NPNetscapeFuncs* g_browser; 13 extern NPNetscapeFuncs* g_browser;
14 14
15 // Standard NPAPI functions. 15 // Standard NPAPI functions.
16 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc , 16 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode,
17 char* argn[], char* argv[], NPSavedData* saved); 17 int16_t argc, char* argn[], char* argv[], NPSavedData* saved);
18 NPError NPP_Destroy(NPP instance, NPSavedData** save); 18 NPError NPP_Destroy(NPP instance, NPSavedData** save);
19 NPError NPP_SetWindow(NPP instance, NPWindow* window); 19 NPError NPP_SetWindow(NPP instance, NPWindow* window);
20 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, 20 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
21 NPBool seekable, uint16_t* stype); 21 NPBool seekable, uint16_t* stype);
22 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason); 22 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
23 int32_t NPP_WriteReady(NPP instance, NPStream* stream); 23 int32_t NPP_WriteReady(NPP instance, NPStream* stream);
24 int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, 24 int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len,
25 void* buffer); 25 void* buffer);
26 #if defined(OS_POSIX) && !defined(OS_MACOSX) 26 #if defined(OS_POSIX) && !defined(OS_MACOSX)
27 NPError NPP_GetValue(NPP instance, NPPVariable variable, void* value); 27 NPError NPP_GetValue(NPP instance, NPPVariable variable, void* value);
28 #endif 28 #endif
29 void NPP_URLNotify(NPP instance, const char* url, NPReason reason, 29 void NPP_URLNotify(NPP instance, const char* url, NPReason reason,
30 void* notifyData); 30 void* notifyData);
31 int16_t NPP_HandleEvent(NPP instance, void* event); 31 int16_t NPP_HandleEvent(NPP instance, void* event);
32 32
33 #if defined(OS_POSIX) && !defined(OS_MACOSX) 33 #if defined(OS_POSIX) && !defined(OS_MACOSX)
34 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs, NPPluginFuncs* p_funcs); 34 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs, NPPluginFuncs* p_funcs);
35 #else 35 #else
36 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs); 36 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs);
37 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs); 37 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs);
38 #endif 38 #endif
39 NPError API_CALL NP_Shutdown(void); 39 NPError API_CALL NP_Shutdown(void);
40 40
41 } // default_plugin 41 } // default_plugin
OLDNEW
« no previous file with comments | « chrome/default_plugin/plugin_install_job_monitor.cc ('k') | chrome/default_plugin/plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698