| 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 #include "content/renderer/npapi/webplugin_impl.h" | 5 #include "content/renderer/npapi/webplugin_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/crash_logging.h" | 9 #include "base/debug/crash_logging.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 render_view_(render_view), | 537 render_view_(render_view), |
| 538 webframe_(webframe), | 538 webframe_(webframe), |
| 539 delegate_(NULL), | 539 delegate_(NULL), |
| 540 container_(NULL), | 540 container_(NULL), |
| 541 npp_(NULL), | 541 npp_(NULL), |
| 542 plugin_url_(params.url), | 542 plugin_url_(params.url), |
| 543 load_manually_(params.loadManually), | 543 load_manually_(params.loadManually), |
| 544 first_geometry_update_(true), | 544 first_geometry_update_(true), |
| 545 ignore_response_error_(false), | 545 ignore_response_error_(false), |
| 546 file_path_(file_path), | 546 file_path_(file_path), |
| 547 mime_type_(UTF16ToASCII(params.mimeType)), | 547 mime_type_(base::UTF16ToASCII(params.mimeType)), |
| 548 weak_factory_(this), | 548 weak_factory_(this), |
| 549 loader_client_(this) { | 549 loader_client_(this) { |
| 550 DCHECK_EQ(params.attributeNames.size(), params.attributeValues.size()); | 550 DCHECK_EQ(params.attributeNames.size(), params.attributeValues.size()); |
| 551 StringToLowerASCII(&mime_type_); | 551 StringToLowerASCII(&mime_type_); |
| 552 | 552 |
| 553 for (size_t i = 0; i < params.attributeNames.size(); ++i) { | 553 for (size_t i = 0; i < params.attributeNames.size(); ++i) { |
| 554 arg_names_.push_back(params.attributeNames[i].utf8()); | 554 arg_names_.push_back(params.attributeNames[i].utf8()); |
| 555 arg_values_.push_back(params.attributeValues[i].utf8()); | 555 arg_values_.push_back(params.attributeValues[i].utf8()); |
| 556 } | 556 } |
| 557 | 557 |
| (...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 case PLUGIN_SRC: | 1535 case PLUGIN_SRC: |
| 1536 webframe_->setReferrerForRequest(*request, plugin_url_); | 1536 webframe_->setReferrerForRequest(*request, plugin_url_); |
| 1537 break; | 1537 break; |
| 1538 | 1538 |
| 1539 default: | 1539 default: |
| 1540 break; | 1540 break; |
| 1541 } | 1541 } |
| 1542 } | 1542 } |
| 1543 | 1543 |
| 1544 } // namespace content | 1544 } // namespace content |
| OLD | NEW |