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

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

Issue 307063003: Revert 273745 "Implements RTP header dumping." due to memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE; 70 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE;
71 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; 71 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE;
72 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; 72 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE;
73 virtual void ResumeRequestsForView(int route_id) OVERRIDE; 73 virtual void ResumeRequestsForView(int route_id) OVERRIDE;
74 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; 74 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE;
75 #if defined(ENABLE_WEBRTC) 75 #if defined(ENABLE_WEBRTC)
76 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; 76 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE;
77 virtual void DisableAecDump() OVERRIDE; 77 virtual void DisableAecDump() OVERRIDE;
78 virtual void SetWebRtcLogMessageCallback( 78 virtual void SetWebRtcLogMessageCallback(
79 base::Callback<void(const std::string&)> callback) OVERRIDE; 79 base::Callback<void(const std::string&)> callback) OVERRIDE;
80 virtual WebRtcStopRtpDumpCallback StartRtpDump(
81 bool incoming,
82 bool outgoing,
83 const WebRtcRtpPacketCallback& packet_callback) OVERRIDE;
84 #endif 80 #endif
85 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) 81 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id)
86 OVERRIDE; 82 OVERRIDE;
87 virtual void NotifyTimezoneChange() OVERRIDE; 83 virtual void NotifyTimezoneChange() OVERRIDE;
88 84
89 // IPC::Sender via RenderProcessHost. 85 // IPC::Sender via RenderProcessHost.
90 virtual bool Send(IPC::Message* msg) OVERRIDE; 86 virtual bool Send(IPC::Message* msg) OVERRIDE;
91 87
92 // IPC::Listener via RenderProcessHost. 88 // IPC::Listener via RenderProcessHost.
93 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 89 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // for deleting all MockRenderProcessHosts that have not deleted by a test in 139 // for deleting all MockRenderProcessHosts that have not deleted by a test in
144 // the destructor and prevent them from being leaked. 140 // the destructor and prevent them from being leaked.
145 mutable ScopedVector<MockRenderProcessHost> processes_; 141 mutable ScopedVector<MockRenderProcessHost> processes_;
146 142
147 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 143 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
148 }; 144 };
149 145
150 } // namespace content 146 } // namespace content
151 147
152 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 148 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « trunk/src/content/public/browser/render_process_host.h ('k') | trunk/src/content/public/test/mock_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698