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 webframe_(webframe), | 537 webframe_(webframe), |
538 delegate_(NULL), | 538 delegate_(NULL), |
539 container_(NULL), | 539 container_(NULL), |
540 npp_(NULL), | 540 npp_(NULL), |
541 plugin_url_(params.url), | 541 plugin_url_(params.url), |
542 load_manually_(params.loadManually), | 542 load_manually_(params.loadManually), |
543 first_geometry_update_(true), | 543 first_geometry_update_(true), |
544 ignore_response_error_(false), | 544 ignore_response_error_(false), |
545 file_path_(file_path), | 545 file_path_(file_path), |
546 mime_type_(base::UTF16ToASCII(params.mimeType)), | 546 mime_type_(base::UTF16ToASCII(params.mimeType)), |
547 weak_factory_(this), | 547 loader_client_(this), |
548 loader_client_(this) { | 548 weak_factory_(this) { |
549 DCHECK_EQ(params.attributeNames.size(), params.attributeValues.size()); | 549 DCHECK_EQ(params.attributeNames.size(), params.attributeValues.size()); |
550 base::StringToLowerASCII(&mime_type_); | 550 base::StringToLowerASCII(&mime_type_); |
551 | 551 |
552 for (size_t i = 0; i < params.attributeNames.size(); ++i) { | 552 for (size_t i = 0; i < params.attributeNames.size(); ++i) { |
553 arg_names_.push_back(params.attributeNames[i].utf8()); | 553 arg_names_.push_back(params.attributeNames[i].utf8()); |
554 arg_values_.push_back(params.attributeValues[i].utf8()); | 554 arg_values_.push_back(params.attributeValues[i].utf8()); |
555 } | 555 } |
556 | 556 |
557 // Set subresource URL for crash reporting. | 557 // Set subresource URL for crash reporting. |
558 base::debug::SetCrashKeyValue("subresource_url", plugin_url_.spec()); | 558 base::debug::SetCrashKeyValue("subresource_url", plugin_url_.spec()); |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1525 case PLUGIN_SRC: | 1525 case PLUGIN_SRC: |
1526 webframe_->setReferrerForRequest(*request, plugin_url_); | 1526 webframe_->setReferrerForRequest(*request, plugin_url_); |
1527 break; | 1527 break; |
1528 | 1528 |
1529 default: | 1529 default: |
1530 break; | 1530 break; |
1531 } | 1531 } |
1532 } | 1532 } |
1533 | 1533 |
1534 } // namespace content | 1534 } // namespace content |
OLD | NEW |