| 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 "chrome/browser/renderer_host/render_widget_helper.h" | 5 #include "chrome/browser/renderer_host/render_widget_helper.h" |
| 6 | 6 |
| 7 #include "base/eintr_wrapper.h" | 7 #include "base/eintr_wrapper.h" |
| 8 #include "base/thread.h" | 8 #include "base/thread.h" |
| 9 #include "chrome/browser/chrome_thread.h" | 9 #include "chrome/browser/chrome_thread.h" |
| 10 #include "chrome/browser/renderer_host/render_process_host.h" | 10 #include "chrome/browser/renderer_host/render_process_host.h" |
| 11 #include "chrome/browser/renderer_host/render_view_host.h" | 11 #include "chrome/browser/renderer_host/render_view_host.h" |
| 12 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 12 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 13 #include "chrome/common/render_messages.h" | 13 #include "chrome/common/render_messages_params.h" |
| 14 | 14 |
| 15 // A Task used with InvokeLater that we hold a pointer to in pending_paints_. | 15 // A Task used with InvokeLater that we hold a pointer to in pending_paints_. |
| 16 // Instances are deleted by MessageLoop after it calls their Run method. | 16 // Instances are deleted by MessageLoop after it calls their Run method. |
| 17 class RenderWidgetHelper::UpdateMsgProxy : public Task { | 17 class RenderWidgetHelper::UpdateMsgProxy : public Task { |
| 18 public: | 18 public: |
| 19 UpdateMsgProxy(RenderWidgetHelper* h, const IPC::Message& m) | 19 UpdateMsgProxy(RenderWidgetHelper* h, const IPC::Message& m) |
| 20 : helper(h), | 20 : helper(h), |
| 21 message(m), | 21 message(m), |
| 22 cancelled(false) { | 22 cancelled(false) { |
| 23 } | 23 } |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 void RenderWidgetHelper::ClearAllocatedDIBs() { | 324 void RenderWidgetHelper::ClearAllocatedDIBs() { |
| 325 for (std::map<TransportDIB::Id, int>::iterator | 325 for (std::map<TransportDIB::Id, int>::iterator |
| 326 i = allocated_dibs_.begin(); i != allocated_dibs_.end(); ++i) { | 326 i = allocated_dibs_.begin(); i != allocated_dibs_.end(); ++i) { |
| 327 if (HANDLE_EINTR(close(i->second)) < 0) | 327 if (HANDLE_EINTR(close(i->second)) < 0) |
| 328 PLOG(ERROR) << "close: " << i->first; | 328 PLOG(ERROR) << "close: " << i->first; |
| 329 } | 329 } |
| 330 | 330 |
| 331 allocated_dibs_.clear(); | 331 allocated_dibs_.clear(); |
| 332 } | 332 } |
| 333 #endif | 333 #endif |
| OLD | NEW |