| 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_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // to handle the response identified by the loader parameter. | 313 // to handle the response identified by the loader parameter. |
| 314 bool ReinitializePluginForResponse(WebKit::WebURLLoader* loader); | 314 bool ReinitializePluginForResponse(WebKit::WebURLLoader* loader); |
| 315 | 315 |
| 316 // Notifies us that the visibility of the plugin has changed. | 316 // Notifies us that the visibility of the plugin has changed. |
| 317 void UpdateVisibility(); | 317 void UpdateVisibility(); |
| 318 | 318 |
| 319 // Helper functions to convert an array of names/values to a vector. | 319 // Helper functions to convert an array of names/values to a vector. |
| 320 static void ArrayToVector(int total_values, char** values, | 320 static void ArrayToVector(int total_values, char** values, |
| 321 std::vector<std::string>* value_vector); | 321 std::vector<std::string>* value_vector); |
| 322 | 322 |
| 323 // Delayed task for downloading the plugin source URL. |
| 324 void OnDownloadPluginSrcUrl(); |
| 325 |
| 323 struct ClientInfo { | 326 struct ClientInfo { |
| 324 int id; | 327 int id; |
| 325 WebPluginResourceClient* client; | 328 WebPluginResourceClient* client; |
| 326 WebKit::WebURLRequest request; | 329 WebKit::WebURLRequest request; |
| 327 linked_ptr<WebKit::WebURLLoader> loader; | 330 linked_ptr<WebKit::WebURLLoader> loader; |
| 328 }; | 331 }; |
| 329 | 332 |
| 330 std::vector<ClientInfo> clients_; | 333 std::vector<ClientInfo> clients_; |
| 331 | 334 |
| 332 bool windowless_; | 335 bool windowless_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 356 | 359 |
| 357 // The mime type of the plugin. | 360 // The mime type of the plugin. |
| 358 std::string mime_type_; | 361 std::string mime_type_; |
| 359 | 362 |
| 360 // Holds the list of argument names passed to the plugin. | 363 // Holds the list of argument names passed to the plugin. |
| 361 std::vector<std::string> arg_names_; | 364 std::vector<std::string> arg_names_; |
| 362 | 365 |
| 363 // Holds the list of argument values passed to the plugin. | 366 // Holds the list of argument values passed to the plugin. |
| 364 std::vector<std::string> arg_values_; | 367 std::vector<std::string> arg_values_; |
| 365 | 368 |
| 369 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; |
| 370 |
| 366 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 371 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 367 }; | 372 }; |
| 368 | 373 |
| 369 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ | 374 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |