| 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_GLUE_WEBPLUGIN_H__ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_H__ | 6 #define WEBKIT_GLUE_WEBPLUGIN_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Description of the mime type. | 32 // Description of the mime type. |
| 33 std::wstring description; | 33 std::wstring description; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 | 36 |
| 37 // Describes an available NPAPI plugin. | 37 // Describes an available NPAPI plugin. |
| 38 struct WebPluginInfo { | 38 struct WebPluginInfo { |
| 39 // The name of the plugin (i.e. Flash). | 39 // The name of the plugin (i.e. Flash). |
| 40 std::wstring name; | 40 std::wstring name; |
| 41 | 41 |
| 42 // The UTF8 filename of the plugin, without the path. This may be in a | |
| 43 // different case than FilePath on some systems. On Windows this comes from | |
| 44 // the DLL's version information. | |
| 45 std::string filename; | |
| 46 | |
| 47 // The path to the plugin file (DLL/bundle/library). | 42 // The path to the plugin file (DLL/bundle/library). |
| 48 FilePath path; | 43 FilePath path; |
| 49 | 44 |
| 50 // The version number of the plugin file (may be OS-specific) | 45 // The version number of the plugin file (may be OS-specific) |
| 51 std::wstring version; | 46 std::wstring version; |
| 52 | 47 |
| 53 // A description of the plugin that we get from its version info. | 48 // A description of the plugin that we get from its version info. |
| 54 std::wstring desc; | 49 std::wstring desc; |
| 55 | 50 |
| 56 // A list of all the mime types that this plugin supports. | 51 // A list of all the mime types that this plugin supports. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 virtual void DidReceiveData(const char* buffer, int length, | 160 virtual void DidReceiveData(const char* buffer, int length, |
| 166 int data_offset) = 0; | 161 int data_offset) = 0; |
| 167 virtual void DidFinishLoading() = 0; | 162 virtual void DidFinishLoading() = 0; |
| 168 virtual void DidFail() = 0; | 163 virtual void DidFail() = 0; |
| 169 virtual bool IsMultiByteResponseExpected() = 0; | 164 virtual bool IsMultiByteResponseExpected() = 0; |
| 170 }; | 165 }; |
| 171 | 166 |
| 172 | 167 |
| 173 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ | 168 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ |
| 174 | 169 |
| OLD | NEW |