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

Side by Side Diff: chrome/plugin/webplugin_proxy.cc

Issue 384130: For Mstone-4: Improve URL Logging in crash reporting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/plugin/webplugin_proxy.h" 5 #include "chrome/plugin/webplugin_proxy.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 Send(new PluginHostMsg_InitiateHTTPRangeRequest(route_id_, url, 566 Send(new PluginHostMsg_InitiateHTTPRangeRequest(route_id_, url,
567 range_info, existing_stream, 567 range_info, existing_stream,
568 notify_needed, notify_data)); 568 notify_needed, notify_data));
569 } 569 }
570 570
571 void WebPluginProxy::SetDeferResourceLoading(int resource_id, bool defer) { 571 void WebPluginProxy::SetDeferResourceLoading(int resource_id, bool defer) {
572 Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer)); 572 Send(new PluginHostMsg_DeferResourceLoading(route_id_, resource_id, defer));
573 } 573 }
574 574
575 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) { 575 void WebPluginProxy::OnPaint(const gfx::Rect& damaged_rect) {
576 child_process_logging::ScopedActiveURLSetter url_setter(page_url_); 576 child_process_logging::SetActiveURL(page_url_);
577 577
578 Paint(damaged_rect); 578 Paint(damaged_rect);
579 Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect)); 579 Send(new PluginHostMsg_InvalidateRect(route_id_, damaged_rect));
580 } 580 }
581 581
582 bool WebPluginProxy::IsOffTheRecord() { 582 bool WebPluginProxy::IsOffTheRecord() {
583 return channel_->off_the_record(); 583 return channel_->off_the_record();
584 } 584 }
585 585
586 void WebPluginProxy::ResourceClientDeleted( 586 void WebPluginProxy::ResourceClientDeleted(
587 WebPluginResourceClient* resource_client) { 587 WebPluginResourceClient* resource_client) {
588 ResourceClientMap::iterator index = resource_clients_.begin(); 588 ResourceClientMap::iterator index = resource_clients_.begin();
589 while (index != resource_clients_.end()) { 589 while (index != resource_clients_.end()) {
590 WebPluginResourceClient* client = (*index).second; 590 WebPluginResourceClient* client = (*index).second;
591 591
592 if (client == resource_client) { 592 if (client == resource_client) {
593 resource_clients_.erase(index++); 593 resource_clients_.erase(index++);
594 } else { 594 } else {
595 index++; 595 index++;
596 } 596 }
597 } 597 }
598 } 598 }
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698