| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/plugins/npapi/plugin_instance.h" | 5 #include "webkit/plugins/npapi/plugin_instance.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 PluginInstance::PluginInstance(PluginLib *plugin, const std::string &mime_type) | 28 PluginInstance::PluginInstance(PluginLib *plugin, const std::string &mime_type) |
| 29 : plugin_(plugin), | 29 : plugin_(plugin), |
| 30 npp_(0), | 30 npp_(0), |
| 31 host_(PluginHost::Singleton()), | 31 host_(PluginHost::Singleton()), |
| 32 npp_functions_(plugin->functions()), | 32 npp_functions_(plugin->functions()), |
| 33 window_handle_(0), | 33 window_handle_(0), |
| 34 windowless_(false), | 34 windowless_(false), |
| 35 transparent_(true), | 35 transparent_(true), |
| 36 webplugin_(0), | 36 webplugin_(0), |
| 37 mime_type_(mime_type), | 37 mime_type_(mime_type), |
| 38 get_notify_data_(0), |
| 38 use_mozilla_user_agent_(false), | 39 use_mozilla_user_agent_(false), |
| 39 #if defined (OS_MACOSX) | 40 #if defined (OS_MACOSX) |
| 40 #ifdef NP_NO_QUICKDRAW | 41 #ifdef NP_NO_QUICKDRAW |
| 41 drawing_model_(NPDrawingModelCoreGraphics), | 42 drawing_model_(NPDrawingModelCoreGraphics), |
| 42 #else | 43 #else |
| 43 drawing_model_(NPDrawingModelQuickDraw), | 44 drawing_model_(NPDrawingModelQuickDraw), |
| 44 #endif | 45 #endif |
| 45 #ifdef NP_NO_CARBON | 46 #ifdef NP_NO_CARBON |
| 46 event_model_(NPEventModelCocoa), | 47 event_model_(NPEventModelCocoa), |
| 47 #else | 48 #else |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 plugin_stream->UpdateUrl( | 665 plugin_stream->UpdateUrl( |
| 665 plugin_stream->pending_redirect_url().c_str()); | 666 plugin_stream->pending_redirect_url().c_str()); |
| 666 } | 667 } |
| 667 break; | 668 break; |
| 668 } | 669 } |
| 669 } | 670 } |
| 670 } | 671 } |
| 671 | 672 |
| 672 } // namespace npapi | 673 } // namespace npapi |
| 673 } // namespace webkit | 674 } // namespace webkit |
| OLD | NEW |