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

Side by Side Diff: content/shell/tools/plugin/main.cpp

Issue 1829293002: Make the test NPAPI plugin not handle png (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase; request rebaseline on linux 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /* 5 /*
6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) 835 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value)
836 { 836 {
837 PluginObject* obj = static_cast<PluginObject*>(instance->pdata); 837 PluginObject* obj = static_cast<PluginObject*>(instance->pdata);
838 return obj->pluginTest->NPP_SetValue(variable, value); 838 return obj->pluginTest->NPP_SetValue(variable, value);
839 } 839 }
840 840
841 #ifdef XP_UNIX 841 #ifdef XP_UNIX
842 extern "C" 842 extern "C"
843 const char* NP_GetMIMEDescription(void) 843 const char* NP_GetMIMEDescription(void)
844 { 844 {
845 return "application/x-webkit-test-netscape:testnetscape:test netscape conten t;image/png:png:PNG image"; 845 return "application/x-webkit-test-netscape:testnetscape:test netscape conten t";
846 } 846 }
847 847
848 extern "C" 848 extern "C"
849 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) 849 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value)
850 { 850 {
851 return NPP_GetValue(instance, variable, value); 851 return NPP_GetValue(instance, variable, value);
852 } 852 }
853 #endif 853 #endif
OLDNEW
« no previous file with comments | « content/shell/tools/plugin/mac/Info.plist ('k') | content/shell/tools/plugin/win/TestNetscapePlugin.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698