| OLD | NEW |
| 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 // PlzNavigate | 467 // PlzNavigate |
| 468 // Stores the time at which the first call to Init happened. | 468 // Stores the time at which the first call to Init happened. |
| 469 base::TimeTicks init_time_; | 469 base::TimeTicks init_time_; |
| 470 | 470 |
| 471 // Used to launch and terminate the process without blocking the UI thread. | 471 // Used to launch and terminate the process without blocking the UI thread. |
| 472 std::unique_ptr<ChildProcessLauncher> child_process_launcher_; | 472 std::unique_ptr<ChildProcessLauncher> child_process_launcher_; |
| 473 | 473 |
| 474 // The globally-unique identifier for this RPH. | 474 // The globally-unique identifier for this RPH. |
| 475 const int id_; | 475 const int id_; |
| 476 | 476 |
| 477 // A secondary ID used by the Mojo shell to distinguish different incarnations | 477 // A secondary ID used by the Service Manager to distinguish different |
| 478 // of the same RPH from each other. Unlike |id_| this is not globally unique, | 478 // incarnations of the same RPH from each other. Unlike |id_| this is not |
| 479 // but it is guaranteed to change every time Init() is called. | 479 // globally unique, but it is guaranteed to change every time ProcessDied() is |
| 480 // called. |
| 480 int instance_id_ = 1; | 481 int instance_id_ = 1; |
| 481 | 482 |
| 482 BrowserContext* browser_context_; | 483 BrowserContext* browser_context_; |
| 483 | 484 |
| 484 // Owned by |browser_context_|. | 485 // Owned by |browser_context_|. |
| 485 StoragePartitionImpl* storage_partition_impl_; | 486 StoragePartitionImpl* storage_partition_impl_; |
| 486 | 487 |
| 487 // The observers watching our lifetime. | 488 // The observers watching our lifetime. |
| 488 base::ObserverList<RenderProcessHostObserver> observers_; | 489 base::ObserverList<RenderProcessHostObserver> observers_; |
| 489 | 490 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 instance_weak_factory_; | 586 instance_weak_factory_; |
| 586 | 587 |
| 587 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 588 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 588 | 589 |
| 589 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 590 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 590 }; | 591 }; |
| 591 | 592 |
| 592 } // namespace content | 593 } // namespace content |
| 593 | 594 |
| 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |