OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // after changing out of WebCore types, to a delegate. The delegate may | 51 // after changing out of WebCore types, to a delegate. The delegate may |
52 // be in a different process. | 52 // be in a different process. |
53 class WEBKIT_PLUGINS_EXPORT WebPluginImpl : | 53 class WEBKIT_PLUGINS_EXPORT WebPluginImpl : |
54 NON_EXPORTED_BASE(public WebPlugin), | 54 NON_EXPORTED_BASE(public WebPlugin), |
55 NON_EXPORTED_BASE(public WebKit::WebPlugin), | 55 NON_EXPORTED_BASE(public WebKit::WebPlugin), |
56 NON_EXPORTED_BASE(public WebKit::WebURLLoaderClient) { | 56 NON_EXPORTED_BASE(public WebKit::WebURLLoaderClient) { |
57 public: | 57 public: |
58 WebPluginImpl( | 58 WebPluginImpl( |
59 WebKit::WebFrame* frame, | 59 WebKit::WebFrame* frame, |
60 const WebKit::WebPluginParams& params, | 60 const WebKit::WebPluginParams& params, |
61 const FilePath& file_path, | 61 const base::FilePath& file_path, |
62 const base::WeakPtr<WebPluginPageDelegate>& page_delegate); | 62 const base::WeakPtr<WebPluginPageDelegate>& page_delegate); |
63 virtual ~WebPluginImpl(); | 63 virtual ~WebPluginImpl(); |
64 | 64 |
65 // Helper function for sorting post data. | 65 // Helper function for sorting post data. |
66 static bool SetPostData(WebKit::WebURLRequest* request, | 66 static bool SetPostData(WebKit::WebURLRequest* request, |
67 const char* buf, | 67 const char* buf, |
68 uint32 length); | 68 uint32 length); |
69 | 69 |
70 virtual WebPluginDelegate* delegate(); | 70 virtual WebPluginDelegate* delegate(); |
71 | 71 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // Indicates if this is the first geometry update received by the plugin. | 308 // Indicates if this is the first geometry update received by the plugin. |
309 bool first_geometry_update_; | 309 bool first_geometry_update_; |
310 | 310 |
311 // Set to true if the next response error should be ignored. | 311 // Set to true if the next response error should be ignored. |
312 bool ignore_response_error_; | 312 bool ignore_response_error_; |
313 | 313 |
314 // The current plugin geometry and clip rectangle. | 314 // The current plugin geometry and clip rectangle. |
315 WebPluginGeometry geometry_; | 315 WebPluginGeometry geometry_; |
316 | 316 |
317 // The location of the plugin on disk. | 317 // The location of the plugin on disk. |
318 FilePath file_path_; | 318 base::FilePath file_path_; |
319 | 319 |
320 // The mime type of the plugin. | 320 // The mime type of the plugin. |
321 std::string mime_type_; | 321 std::string mime_type_; |
322 | 322 |
323 // Holds the list of argument names and values passed to the plugin. We keep | 323 // Holds the list of argument names and values passed to the plugin. We keep |
324 // these so that we can re-initialize the plugin if we need to. | 324 // these so that we can re-initialize the plugin if we need to. |
325 std::vector<std::string> arg_names_; | 325 std::vector<std::string> arg_names_; |
326 std::vector<std::string> arg_values_; | 326 std::vector<std::string> arg_values_; |
327 | 327 |
328 base::WeakPtrFactory<WebPluginImpl> weak_factory_; | 328 base::WeakPtrFactory<WebPluginImpl> weak_factory_; |
329 | 329 |
330 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 330 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
331 }; | 331 }; |
332 | 332 |
333 } // namespace npapi | 333 } // namespace npapi |
334 } // namespace webkit | 334 } // namespace webkit |
335 | 335 |
336 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ | 336 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |