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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2569963002: MemoryCoordinator checks if ServiceWorker exists on the suspending process (Closed)
Patch Set: Created 4 years 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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 bool incoming, 154 bool incoming,
155 bool outgoing, 155 bool outgoing,
156 const WebRtcRtpPacketCallback& packet_callback) override; 156 const WebRtcRtpPacketCallback& packet_callback) override;
157 #endif 157 #endif
158 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; 158 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override;
159 service_manager::InterfaceProvider* GetRemoteInterfaces() override; 159 service_manager::InterfaceProvider* GetRemoteInterfaces() override;
160 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() 160 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator()
161 override; 161 override;
162 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; 162 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
163 bool IsProcessBackgrounded() const override; 163 bool IsProcessBackgrounded() const override;
164 size_t GetWorkerRefCount() const override;
164 void IncrementServiceWorkerRefCount() override; 165 void IncrementServiceWorkerRefCount() override;
165 void DecrementServiceWorkerRefCount() override; 166 void DecrementServiceWorkerRefCount() override;
166 void IncrementSharedWorkerRefCount() override; 167 void IncrementSharedWorkerRefCount() override;
167 void DecrementSharedWorkerRefCount() override; 168 void DecrementSharedWorkerRefCount() override;
168 void ForceReleaseWorkerRefCounts() override; 169 void ForceReleaseWorkerRefCounts() override;
169 bool IsWorkerRefCountDisabled() override; 170 bool IsWorkerRefCountDisabled() override;
170 void PurgeAndSuspend() override; 171 void PurgeAndSuspend() override;
171 void Resume() override; 172 void Resume() override;
172 mojom::Renderer* GetRendererInterface() override; 173 mojom::Renderer* GetRendererInterface() override;
173 174
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // started to swap these in, so the renderer process should not exit if 296 // started to swap these in, so the renderer process should not exit if
296 // this count is non-zero. 297 // this count is non-zero.
297 int32_t pending_views_; 298 int32_t pending_views_;
298 299
299 private: 300 private:
300 friend class ChildProcessLauncherBrowserTest_ChildSpawnFail_Test; 301 friend class ChildProcessLauncherBrowserTest_ChildSpawnFail_Test;
301 friend class VisitRelayingRenderProcessHost; 302 friend class VisitRelayingRenderProcessHost;
302 class ConnectionFilterController; 303 class ConnectionFilterController;
303 class ConnectionFilterImpl; 304 class ConnectionFilterImpl;
304 305
305 size_t worker_ref_count() {
306 return service_worker_ref_count_ + shared_worker_ref_count_;
307 }
308
309 // Initializes a new IPC::ChannelProxy in |channel_|, which will be connected 306 // Initializes a new IPC::ChannelProxy in |channel_|, which will be connected
310 // to the next child process launched for this host, if any. 307 // to the next child process launched for this host, if any.
311 void InitializeChannelProxy(); 308 void InitializeChannelProxy();
312 309
313 // Resets |channel_|, removing it from the attachment broker if necessary. 310 // Resets |channel_|, removing it from the attachment broker if necessary.
314 // Always call this in lieu of directly resetting |channel_|. 311 // Always call this in lieu of directly resetting |channel_|.
315 void ResetChannelProxy(); 312 void ResetChannelProxy();
316 313
317 // Creates and adds the IO thread message filters. 314 // Creates and adds the IO thread message filters.
318 void CreateMessageFilters(); 315 void CreateMessageFilters();
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 instance_weak_factory_; 584 instance_weak_factory_;
588 585
589 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 586 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
590 587
591 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 588 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
592 }; 589 };
593 590
594 } // namespace content 591 } // namespace content
595 592
596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 593 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698