Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: webkit/glue/plugins/plugin_instance.cc

Issue 14122: Handle HTTP 200 responses received in response to byte range requests issued... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/plugins/plugin_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | webkit/glue/plugins/plugin_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698