| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef WEBKIT_PORT_PLUGINS_TEST_PLUGIN_TEST_H__ | 5 #ifndef WEBKIT_PORT_PLUGINS_TEST_PLUGIN_TEST_H__ |
| 6 #define WEBKIT_PORT_PLUGINS_TEST_PLUGIN_TEST_H__ | 6 #define WEBKIT_PORT_PLUGINS_TEST_PLUGIN_TEST_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 PluginTest(NPP id, NPNetscapeFuncs *host_functions); | 21 PluginTest(NPP id, NPNetscapeFuncs *host_functions); |
| 22 | 22 |
| 23 // Destructor | 23 // Destructor |
| 24 virtual ~PluginTest() {} | 24 virtual ~PluginTest() {} |
| 25 | 25 |
| 26 // | 26 // |
| 27 // NPAPI Functions | 27 // NPAPI Functions |
| 28 // | 28 // |
| 29 virtual NPError New(uint16 mode, int16 argc, const char* argn[], | 29 virtual NPError New(uint16 mode, int16 argc, const char* argn[], |
| 30 const char* argv[], NPSavedData* saved); | 30 const char* argv[], NPSavedData* saved); |
| 31 virtual NPError Destroy(); |
| 31 virtual NPError SetWindow(NPWindow* pNPWindow); | 32 virtual NPError SetWindow(NPWindow* pNPWindow); |
| 32 virtual NPError NewStream(NPMIMEType type, NPStream* stream, | 33 virtual NPError NewStream(NPMIMEType type, NPStream* stream, |
| 33 NPBool seekable, uint16* stype); | 34 NPBool seekable, uint16* stype); |
| 34 virtual int32 WriteReady(NPStream *stream); | 35 virtual int32 WriteReady(NPStream *stream); |
| 35 virtual int32 Write(NPStream *stream, int32 offset, int32 len, | 36 virtual int32 Write(NPStream *stream, int32 offset, int32 len, |
| 36 void *buffer); | 37 void *buffer); |
| 37 virtual NPError DestroyStream(NPStream *stream, NPError reason); | 38 virtual NPError DestroyStream(NPStream *stream, NPError reason); |
| 38 virtual void StreamAsFile(NPStream* stream, const char* fname); | 39 virtual void StreamAsFile(NPStream* stream, const char* fname); |
| 39 virtual void URLNotify(const char* url, NPReason reason, void* data); | 40 virtual void URLNotify(const char* url, NPReason reason, void* data); |
| 40 virtual int16 HandleEvent(void* event); | 41 virtual int16 HandleEvent(void* event); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 NPNetscapeFuncs * host_functions_; | 119 NPNetscapeFuncs * host_functions_; |
| 119 std::string test_name_; | 120 std::string test_name_; |
| 120 std::string test_id_; | 121 std::string test_id_; |
| 121 std::string test_status_; | 122 std::string test_status_; |
| 122 bool test_completed_; | 123 bool test_completed_; |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace NPAPIClient | 126 } // namespace NPAPIClient |
| 126 | 127 |
| 127 #endif // WEBKIT_PORT_PLUGINS_TEST_PLUGIN_TEST_H__ | 128 #endif // WEBKIT_PORT_PLUGINS_TEST_PLUGIN_TEST_H__ |
| OLD | NEW |