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

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

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time Created 4 years, 8 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <utility> 10 #include <utility>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 void GetAudioOutputControllers( 139 void GetAudioOutputControllers(
140 const GetAudioOutputControllersCallback& callback) const override {} 140 const GetAudioOutputControllersCallback& callback) const override {}
141 141
142 int worker_ref_count() const { return worker_ref_count_; } 142 int worker_ref_count() const { return worker_ref_count_; }
143 143
144 void SetServiceRegistry(std::unique_ptr<ServiceRegistry> service_registry) { 144 void SetServiceRegistry(std::unique_ptr<ServiceRegistry> service_registry) {
145 service_registry_ = std::move(service_registry); 145 service_registry_ = std::move(service_registry);
146 } 146 }
147 147
148 void Suspend() override {}
149
148 private: 150 private:
149 // Stores IPC messages that would have been sent to the renderer. 151 // Stores IPC messages that would have been sent to the renderer.
150 IPC::TestSink sink_; 152 IPC::TestSink sink_;
151 int bad_msg_count_; 153 int bad_msg_count_;
152 const MockRenderProcessHostFactory* factory_; 154 const MockRenderProcessHostFactory* factory_;
153 int id_; 155 int id_;
154 bool has_connection_; 156 bool has_connection_;
155 BrowserContext* browser_context_; 157 BrowserContext* browser_context_;
156 base::ObserverList<RenderProcessHostObserver> observers_; 158 base::ObserverList<RenderProcessHostObserver> observers_;
157 159
(...skipping 30 matching lines...) Expand all
188 // for deleting all MockRenderProcessHosts that have not deleted by a test in 190 // for deleting all MockRenderProcessHosts that have not deleted by a test in
189 // the destructor and prevent them from being leaked. 191 // the destructor and prevent them from being leaked.
190 mutable ScopedVector<MockRenderProcessHost> processes_; 192 mutable ScopedVector<MockRenderProcessHost> processes_;
191 193
192 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 194 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
193 }; 195 };
194 196
195 } // namespace content 197 } // namespace content
196 198
197 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 199 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698