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

Side by Side Diff: content/browser/renderer_host/mock_render_process_host.h

Issue 7888024: Move handle dumpage to the renderer process (so that it works correctly) and factor out redundant... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params); 43 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params);
44 virtual bool WaitForUpdateMsg(int render_widget_id, 44 virtual bool WaitForUpdateMsg(int render_widget_id,
45 const base::TimeDelta& max_delay, 45 const base::TimeDelta& max_delay,
46 IPC::Message* msg); 46 IPC::Message* msg);
47 virtual void ReceivedBadMessage(); 47 virtual void ReceivedBadMessage();
48 virtual void WidgetRestored(); 48 virtual void WidgetRestored();
49 virtual void WidgetHidden(); 49 virtual void WidgetHidden();
50 virtual int VisibleWidgetCount() const; 50 virtual int VisibleWidgetCount() const;
51 virtual void AddWord(const string16& word); 51 virtual void AddWord(const string16& word);
52 virtual bool FastShutdownIfPossible(); 52 virtual bool FastShutdownIfPossible();
53 virtual void DumpHandles();
53 virtual base::ProcessHandle GetHandle(); 54 virtual base::ProcessHandle GetHandle();
54 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); 55 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id);
55 virtual void SetCompositingSurface( 56 virtual void SetCompositingSurface(
56 int render_widget_id, 57 int render_widget_id,
57 gfx::PluginWindowHandle compositing_surface); 58 gfx::PluginWindowHandle compositing_surface);
58 59
59 // IPC::Channel::Sender via RenderProcessHost. 60 // IPC::Channel::Sender via RenderProcessHost.
60 virtual bool Send(IPC::Message* msg); 61 virtual bool Send(IPC::Message* msg);
61 62
62 // IPC::Channel::Listener via RenderProcessHost. 63 // IPC::Channel::Listener via RenderProcessHost.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 private: 96 private:
96 // A list of MockRenderProcessHosts created by this object. This list is used 97 // A list of MockRenderProcessHosts created by this object. This list is used
97 // for deleting all MockRenderProcessHosts that have not deleted by a test in 98 // for deleting all MockRenderProcessHosts that have not deleted by a test in
98 // the destructor and prevent them from being leaked. 99 // the destructor and prevent them from being leaked.
99 mutable ScopedVector<MockRenderProcessHost> processes_; 100 mutable ScopedVector<MockRenderProcessHost> processes_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 102 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
102 }; 103 };
103 104
104 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 105 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698