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

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

Issue 176843004: Add IncrementWorkerRefCount() and DecrementWorkerRefCount() to RenderProcessHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void ResumeRequestsForView(int route_id) OVERRIDE; 76 virtual void ResumeRequestsForView(int route_id) OVERRIDE;
77 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE; 77 virtual void FilterURL(bool empty_allowed, GURL* url) OVERRIDE;
78 #if defined(ENABLE_WEBRTC) 78 #if defined(ENABLE_WEBRTC)
79 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE; 79 virtual void EnableAecDump(const base::FilePath& file) OVERRIDE;
80 virtual void DisableAecDump() OVERRIDE; 80 virtual void DisableAecDump() OVERRIDE;
81 virtual void SetWebRtcLogMessageCallback( 81 virtual void SetWebRtcLogMessageCallback(
82 base::Callback<void(const std::string&)> callback) OVERRIDE; 82 base::Callback<void(const std::string&)> callback) OVERRIDE;
83 #endif 83 #endif
84 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) 84 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id)
85 OVERRIDE; 85 OVERRIDE;
86 virtual void SetExternalClientStatus(
87 bool has_external_worker_client) OVERRIDE;
86 88
87 // IPC::Sender via RenderProcessHost. 89 // IPC::Sender via RenderProcessHost.
88 virtual bool Send(IPC::Message* msg) OVERRIDE; 90 virtual bool Send(IPC::Message* msg) OVERRIDE;
89 91
90 // IPC::Listener via RenderProcessHost. 92 // IPC::Listener via RenderProcessHost.
91 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 93 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
92 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 94 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
93 95
94 // Attaches the factory object so we can remove this object in its destructor 96 // Attaches the factory object so we can remove this object in its destructor
95 // and prevent MockRenderProcessHostFacotry from deleting it. 97 // and prevent MockRenderProcessHostFacotry from deleting it.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // for deleting all MockRenderProcessHosts that have not deleted by a test in 144 // for deleting all MockRenderProcessHosts that have not deleted by a test in
143 // the destructor and prevent them from being leaked. 145 // the destructor and prevent them from being leaked.
144 mutable ScopedVector<MockRenderProcessHost> processes_; 146 mutable ScopedVector<MockRenderProcessHost> processes_;
145 147
146 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 148 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
147 }; 149 };
148 150
149 } // namespace content 151 } // namespace content
150 152
151 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 153 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698