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

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

Issue 1853333003: [BlobAsync] Faster shortcuttin, make renderer controller leaky & alive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabling fast shutdown when transfering blobs 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_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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 int instance_id_ = 1; 418 int instance_id_ = 1;
419 419
420 BrowserContext* browser_context_; 420 BrowserContext* browser_context_;
421 421
422 // Owned by |browser_context_|. 422 // Owned by |browser_context_|.
423 StoragePartitionImpl* storage_partition_impl_; 423 StoragePartitionImpl* storage_partition_impl_;
424 424
425 // The observers watching our lifetime. 425 // The observers watching our lifetime.
426 base::ObserverList<RenderProcessHostObserver> observers_; 426 base::ObserverList<RenderProcessHostObserver> observers_;
427 427
428 // True if the process can be shut down suddenly. If this is true, then we're 428 // Refcount of dependencies that need sudden termination disabled. If <= 0,
429 // the process can be shut down suddenly. If this is <= 0, then we're
429 // sure that all the RenderViews in the process can be shutdown suddenly. If 430 // sure that all the RenderViews in the process can be shutdown suddenly. If
430 // it's false, then specific RenderViews might still be allowed to be shutdown 431 // it's > 0, then specific RenderViews might still be allowed to be shutdown
431 // suddenly by checking their SuddenTerminationAllowed() flag. This can occur 432 // suddenly by checking their SuddenTerminationAllowed() flag. This can occur
432 // if one WebContents has an unload event listener but another WebContents in 433 // if one WebContents has an unload event listener but another WebContents in
433 // the same process doesn't. 434 // the same process doesn't.
434 bool sudden_termination_allowed_; 435 int sudden_termination_blocking_refcount_;
435 436
436 // Set to true if we shouldn't send input events. We actually do the 437 // Set to true if we shouldn't send input events. We actually do the
437 // filtering for this at the render widget level. 438 // filtering for this at the render widget level.
438 bool ignore_input_events_; 439 bool ignore_input_events_;
439 440
440 // Records the last time we regarded the child process active. 441 // Records the last time we regarded the child process active.
441 base::TimeTicks child_process_activity_time_; 442 base::TimeTicks child_process_activity_time_;
442 443
443 // Indicates whether this RenderProcessHost is exclusively hosting guest 444 // Indicates whether this RenderProcessHost is exclusively hosting guest
444 // RenderFrames. 445 // RenderFrames.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 526 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
526 527
527 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 528 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
528 529
529 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 530 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
530 }; 531 };
531 532
532 } // namespace content 533 } // namespace content
533 534
534 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 535 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698