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

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

Issue 2921663003: GRC: Hook up process-level CoordinationUnits in the browser process (Closed)
Patch Set: Buildfix Created 3 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
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 <memory> 10 #include <memory>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 size_t GetWorkerRefCount() const override; 113 size_t GetWorkerRefCount() const override;
114 void IncrementServiceWorkerRefCount() override; 114 void IncrementServiceWorkerRefCount() override;
115 void DecrementServiceWorkerRefCount() override; 115 void DecrementServiceWorkerRefCount() override;
116 void IncrementSharedWorkerRefCount() override; 116 void IncrementSharedWorkerRefCount() override;
117 void DecrementSharedWorkerRefCount() override; 117 void DecrementSharedWorkerRefCount() override;
118 void ForceReleaseWorkerRefCounts() override; 118 void ForceReleaseWorkerRefCounts() override;
119 bool IsWorkerRefCountDisabled() override; 119 bool IsWorkerRefCountDisabled() override;
120 void PurgeAndSuspend() override; 120 void PurgeAndSuspend() override;
121 void Resume() override; 121 void Resume() override;
122 mojom::Renderer* GetRendererInterface() override; 122 mojom::Renderer* GetRendererInterface() override;
123 resource_coordinator::ResourceCoordinatorInterface*
124 GetProcessResourceCoordinator() override;
125
123 void SetIsNeverSuitableForReuse() override; 126 void SetIsNeverSuitableForReuse() override;
124 bool MayReuseHost() override; 127 bool MayReuseHost() override;
125 128
126 // IPC::Sender via RenderProcessHost. 129 // IPC::Sender via RenderProcessHost.
127 bool Send(IPC::Message* msg) override; 130 bool Send(IPC::Message* msg) override;
128 131
129 // IPC::Listener via RenderProcessHost. 132 // IPC::Listener via RenderProcessHost.
130 bool OnMessageReceived(const IPC::Message& msg) override; 133 bool OnMessageReceived(const IPC::Message& msg) override;
131 void OnChannelConnected(int32_t peer_pid) override; 134 void OnChannelConnected(int32_t peer_pid) override;
132 135
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // for deleting all MockRenderProcessHosts that have not deleted by a test in 200 // for deleting all MockRenderProcessHosts that have not deleted by a test in
198 // the destructor and prevent them from being leaked. 201 // the destructor and prevent them from being leaked.
199 mutable std::vector<std::unique_ptr<MockRenderProcessHost>> processes_; 202 mutable std::vector<std::unique_ptr<MockRenderProcessHost>> processes_;
200 203
201 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 204 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
202 }; 205 };
203 206
204 } // namespace content 207 } // namespace content
205 208
206 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 209 #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