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

Side by Side Diff: content/browser/renderer_host/render_widget_helper.cc

Issue 6705012: Move the rest of the content browser->renderer messages to content. Also move drag related messa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser/renderer_host/render_widget_helper.h" 5 #include "content/browser/renderer_host/render_widget_helper.h"
6 6
7 #include "base/eintr_wrapper.h" 7 #include "base/eintr_wrapper.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "chrome/common/render_messages_params.h" 9 #include "chrome/common/render_messages_params.h"
10 #include "content/browser/browser_thread.h" 10 #include "content/browser/browser_thread.h"
11 #include "content/browser/renderer_host/render_process_host.h" 11 #include "content/browser/renderer_host/render_process_host.h"
12 #include "content/browser/renderer_host/render_view_host.h" 12 #include "content/browser/renderer_host/render_view_host.h"
13 #include "content/browser/renderer_host/resource_dispatcher_host.h" 13 #include "content/browser/renderer_host/resource_dispatcher_host.h"
14 #include "content/common/view_messages.h"
14 15
15 // A Task used with InvokeLater that we hold a pointer to in pending_paints_. 16 // 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. 17 // Instances are deleted by MessageLoop after it calls their Run method.
17 class RenderWidgetHelper::UpdateMsgProxy : public Task { 18 class RenderWidgetHelper::UpdateMsgProxy : public Task {
18 public: 19 public:
19 UpdateMsgProxy(RenderWidgetHelper* h, const IPC::Message& m) 20 UpdateMsgProxy(RenderWidgetHelper* h, const IPC::Message& m)
20 : helper(h), 21 : helper(h),
21 message(m), 22 message(m),
22 cancelled(false) { 23 cancelled(false) {
23 } 24 }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 void RenderWidgetHelper::ClearAllocatedDIBs() { 327 void RenderWidgetHelper::ClearAllocatedDIBs() {
327 for (std::map<TransportDIB::Id, int>::iterator 328 for (std::map<TransportDIB::Id, int>::iterator
328 i = allocated_dibs_.begin(); i != allocated_dibs_.end(); ++i) { 329 i = allocated_dibs_.begin(); i != allocated_dibs_.end(); ++i) {
329 if (HANDLE_EINTR(close(i->second)) < 0) 330 if (HANDLE_EINTR(close(i->second)) < 0)
330 PLOG(ERROR) << "close: " << i->first; 331 PLOG(ERROR) << "close: " << i->first;
331 } 332 }
332 333
333 allocated_dibs_.clear(); 334 allocated_dibs_.clear();
334 } 335 }
335 #endif 336 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698