| 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 #include "webkit/glue/plugins/plugin_instance.h" | 5 #include "webkit/glue/plugins/plugin_instance.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/thread_local_storage.h" | 9 #include "base/thread_local_storage.h" |
| 10 #include "webkit/glue/glue_util.h" | 10 #include "webkit/glue/glue_util.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 host_(PluginHost::Singleton()), | 29 host_(PluginHost::Singleton()), |
| 30 npp_functions_(plugin->functions()), | 30 npp_functions_(plugin->functions()), |
| 31 hwnd_(0), | 31 hwnd_(0), |
| 32 windowless_(false), | 32 windowless_(false), |
| 33 transparent_(true), | 33 transparent_(true), |
| 34 mime_type_(mime_type), | 34 mime_type_(mime_type), |
| 35 webplugin_(0), | 35 webplugin_(0), |
| 36 use_mozilla_user_agent_(false), | 36 use_mozilla_user_agent_(false), |
| 37 message_loop_(MessageLoop::current()), | 37 message_loop_(MessageLoop::current()), |
| 38 load_manually_(false), | 38 load_manually_(false), |
| 39 throttle_invalidate_(false), | |
| 40 get_notify_data_(NULL), | 39 get_notify_data_(NULL), |
| 41 in_close_streams_(false) { | 40 in_close_streams_(false) { |
| 42 npp_ = new NPP_t(); | 41 npp_ = new NPP_t(); |
| 43 npp_->ndata = 0; | 42 npp_->ndata = 0; |
| 44 npp_->pdata = 0; | 43 npp_->pdata = 0; |
| 45 | 44 |
| 46 memset(&zero_padding_, 0, sizeof(zero_padding_)); | 45 memset(&zero_padding_, 0, sizeof(zero_padding_)); |
| 47 DCHECK(message_loop_); | 46 DCHECK(message_loop_); |
| 48 } | 47 } |
| 49 | 48 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 plugin_stream, | 479 plugin_stream, |
| 481 plugin_stream->notify_needed(), | 480 plugin_stream->notify_needed(), |
| 482 plugin_stream->notify_data()); | 481 plugin_stream->notify_data()); |
| 483 break; | 482 break; |
| 484 } | 483 } |
| 485 } | 484 } |
| 486 } | 485 } |
| 487 | 486 |
| 488 } // namespace NPAPI | 487 } // namespace NPAPI |
| 489 | 488 |
| OLD | NEW |