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

Side by Side Diff: content/public/test/mock_render_process_host.h

Issue 24514003: Make BrowserMessageFilter not derive from IPC::ChannelProxy::MessageFilter. This allows us to hide … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual bool IgnoreInputEvents() const OVERRIDE; 60 virtual bool IgnoreInputEvents() const OVERRIDE;
61 virtual void Cleanup() OVERRIDE; 61 virtual void Cleanup() OVERRIDE;
62 virtual void AddPendingView() OVERRIDE; 62 virtual void AddPendingView() OVERRIDE;
63 virtual void RemovePendingView() OVERRIDE; 63 virtual void RemovePendingView() OVERRIDE;
64 virtual void SetSuddenTerminationAllowed(bool allowed) OVERRIDE; 64 virtual void SetSuddenTerminationAllowed(bool allowed) OVERRIDE;
65 virtual bool SuddenTerminationAllowed() const OVERRIDE; 65 virtual bool SuddenTerminationAllowed() const OVERRIDE;
66 virtual BrowserContext* GetBrowserContext() const OVERRIDE; 66 virtual BrowserContext* GetBrowserContext() const OVERRIDE;
67 virtual bool InSameStoragePartition( 67 virtual bool InSameStoragePartition(
68 StoragePartition* partition) const OVERRIDE; 68 StoragePartition* partition) const OVERRIDE;
69 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; 69 virtual IPC::ChannelProxy* GetChannel() OVERRIDE;
70 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE;
70 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; 71 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE;
71 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; 72 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE;
72 virtual void SurfaceUpdated(int32 surface_id) OVERRIDE; 73 virtual void SurfaceUpdated(int32 surface_id) OVERRIDE;
73 virtual void ResumeRequestsForView(int route_id) OVERRIDE; 74 virtual void ResumeRequestsForView(int route_id) OVERRIDE;
74 75
75 // IPC::Sender via RenderProcessHost. 76 // IPC::Sender via RenderProcessHost.
76 virtual bool Send(IPC::Message* msg) OVERRIDE; 77 virtual bool Send(IPC::Message* msg) OVERRIDE;
77 78
78 // IPC::Listener via RenderProcessHost. 79 // IPC::Listener via RenderProcessHost.
79 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 80 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // for deleting all MockRenderProcessHosts that have not deleted by a test in 123 // for deleting all MockRenderProcessHosts that have not deleted by a test in
123 // the destructor and prevent them from being leaked. 124 // the destructor and prevent them from being leaked.
124 mutable ScopedVector<MockRenderProcessHost> processes_; 125 mutable ScopedVector<MockRenderProcessHost> processes_;
125 126
126 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 127 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
127 }; 128 };
128 129
129 } // namespace content 130 } // namespace content
130 131
131 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 132 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698