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

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

Issue 7661031: Tag IPC::Channel::Listener implementations with OVERRIDE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual base::ProcessHandle GetHandle(); 53 virtual base::ProcessHandle GetHandle();
54 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); 54 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id);
55 virtual void SetCompositingSurface( 55 virtual void SetCompositingSurface(
56 int render_widget_id, 56 int render_widget_id,
57 gfx::PluginWindowHandle compositing_surface); 57 gfx::PluginWindowHandle compositing_surface);
58 58
59 // IPC::Channel::Sender via RenderProcessHost. 59 // IPC::Channel::Sender via RenderProcessHost.
60 virtual bool Send(IPC::Message* msg); 60 virtual bool Send(IPC::Message* msg);
61 61
62 // IPC::Channel::Listener via RenderProcessHost. 62 // IPC::Channel::Listener via RenderProcessHost.
63 virtual bool OnMessageReceived(const IPC::Message& msg); 63 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
64 virtual void OnChannelConnected(int32 peer_pid); 64 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
65 65
66 // Attaches the factory object so we can remove this object in its destructor 66 // Attaches the factory object so we can remove this object in its destructor
67 // and prevent MockRenderProcessHostFacotry from deleting it. 67 // and prevent MockRenderProcessHostFacotry from deleting it.
68 void SetFactory(const MockRenderProcessHostFactory* factory) { 68 void SetFactory(const MockRenderProcessHostFactory* factory) {
69 factory_ = factory; 69 factory_ = factory;
70 } 70 }
71 71
72 private: 72 private:
73 // Stores IPC messages that would have been sent to the renderer. 73 // Stores IPC messages that would have been sent to the renderer.
74 IPC::TestSink sink_; 74 IPC::TestSink sink_;
(...skipping 20 matching lines...) Expand all
95 private: 95 private:
96 // A list of MockRenderProcessHosts created by this object. This list is used 96 // 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 97 // for deleting all MockRenderProcessHosts that have not deleted by a test in
98 // the destructor and prevent them from being leaked. 98 // the destructor and prevent them from being leaked.
99 mutable ScopedVector<MockRenderProcessHost> processes_; 99 mutable ScopedVector<MockRenderProcessHost> processes_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 101 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
102 }; 102 };
103 103
104 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ 104 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/browser_render_process_host.h ('k') | content/common/child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698