| 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/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/thread_local_storage.h" | 10 #include "base/thread_local_storage.h" |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 std::string response_url = url; | 361 std::string response_url = url; |
| 362 if (response_url.empty()) { | 362 if (response_url.empty()) { |
| 363 response_url = instance_url_.spec(); | 363 response_url = instance_url_.spec(); |
| 364 } | 364 } |
| 365 | 365 |
| 366 bool cancel = false; | 366 bool cancel = false; |
| 367 | 367 |
| 368 plugin_data_stream_ = CreateStream(-1, url, mime_type, false, NULL); | 368 plugin_data_stream_ = CreateStream(-1, url, mime_type, false, NULL); |
| 369 | 369 |
| 370 plugin_data_stream_->DidReceiveResponse(mime_type, headers, expected_length, | 370 plugin_data_stream_->DidReceiveResponse(mime_type, headers, expected_length, |
| 371 last_modified, &cancel); | 371 last_modified, true, &cancel); |
| 372 AddStream(plugin_data_stream_.get()); | 372 AddStream(plugin_data_stream_.get()); |
| 373 } | 373 } |
| 374 | 374 |
| 375 void PluginInstance::DidReceiveManualData(const char* buffer, int length) { | 375 void PluginInstance::DidReceiveManualData(const char* buffer, int length) { |
| 376 DCHECK(load_manually_); | 376 DCHECK(load_manually_); |
| 377 if (plugin_data_stream_.get() != NULL) { | 377 if (plugin_data_stream_.get() != NULL) { |
| 378 plugin_data_stream_->DidReceiveData(buffer, length, 0); | 378 plugin_data_stream_->DidReceiveData(buffer, length, 0); |
| 379 } | 379 } |
| 380 } | 380 } |
| 381 | 381 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 plugin_stream, | 496 plugin_stream, |
| 497 plugin_stream->notify_needed(), | 497 plugin_stream->notify_needed(), |
| 498 plugin_stream->notify_data()); | 498 plugin_stream->notify_data()); |
| 499 break; | 499 break; |
| 500 } | 500 } |
| 501 } | 501 } |
| 502 } | 502 } |
| 503 | 503 |
| 504 } // namespace NPAPI | 504 } // namespace NPAPI |
| 505 | 505 |
| OLD | NEW |