| 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 // Pepper API support should be enabled for this file. | 5 // Pepper API support should be enabled for this file. |
| 6 #define PEPPER_APIS_ENABLED | 6 #define PEPPER_APIS_ENABLED |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include "webkit/glue/plugins/plugin_instance.h" | 10 #include "webkit/glue/plugins/plugin_instance.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 : plugin_(plugin), | 27 : plugin_(plugin), |
| 28 npp_(0), | 28 npp_(0), |
| 29 host_(PluginHost::Singleton()), | 29 host_(PluginHost::Singleton()), |
| 30 npp_functions_(plugin->functions()), | 30 npp_functions_(plugin->functions()), |
| 31 window_handle_(0), | 31 window_handle_(0), |
| 32 windowless_(false), | 32 windowless_(false), |
| 33 transparent_(true), | 33 transparent_(true), |
| 34 webplugin_(0), | 34 webplugin_(0), |
| 35 mime_type_(mime_type), | 35 mime_type_(mime_type), |
| 36 use_mozilla_user_agent_(false), | 36 use_mozilla_user_agent_(false), |
| 37 #if defined (OS_MACOSX) |
| 38 drawing_model_(0), |
| 39 event_model_(0), |
| 40 #endif |
| 37 message_loop_(MessageLoop::current()), | 41 message_loop_(MessageLoop::current()), |
| 38 load_manually_(false), | 42 load_manually_(false), |
| 39 in_close_streams_(false) { | 43 in_close_streams_(false) { |
| 40 npp_ = new NPP_t(); | 44 npp_ = new NPP_t(); |
| 41 npp_->ndata = 0; | 45 npp_->ndata = 0; |
| 42 npp_->pdata = 0; | 46 npp_->pdata = 0; |
| 43 | 47 |
| 44 memset(&zero_padding_, 0, sizeof(zero_padding_)); | 48 memset(&zero_padding_, 0, sizeof(zero_padding_)); |
| 45 DCHECK(message_loop_); | 49 DCHECK(message_loop_); |
| 46 } | 50 } |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 stream->url, range_info.c_str(), | 446 stream->url, range_info.c_str(), |
| 443 reinterpret_cast<intptr_t>(plugin_stream), | 447 reinterpret_cast<intptr_t>(plugin_stream), |
| 444 plugin_stream->notify_needed(), | 448 plugin_stream->notify_needed(), |
| 445 reinterpret_cast<intptr_t>(plugin_stream->notify_data())); | 449 reinterpret_cast<intptr_t>(plugin_stream->notify_data())); |
| 446 break; | 450 break; |
| 447 } | 451 } |
| 448 } | 452 } |
| 449 } | 453 } |
| 450 | 454 |
| 451 } // namespace NPAPI | 455 } // namespace NPAPI |
| OLD | NEW |