| Index: content/browser/memory/memory_coordinator_impl.h
|
| diff --git a/content/browser/memory/memory_coordinator_impl.h b/content/browser/memory/memory_coordinator_impl.h
|
| index eb5bf0444d238aa1c3a0e32640beee991b09fbf6..f3189b6ea19909041064bbfeddc80e6cf696b465 100644
|
| --- a/content/browser/memory/memory_coordinator_impl.h
|
| +++ b/content/browser/memory/memory_coordinator_impl.h
|
| @@ -101,6 +101,9 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public base::MemoryCoordinator,
|
| // the state is actually changed.
|
| bool ChangeStateIfNeeded(MemoryState prev_state, MemoryState next_state);
|
|
|
| + // Asks the delegate to discard a tab.
|
| + void DiscardTab();
|
| +
|
| protected:
|
| // Returns the RenderProcessHost which is correspond to the given id.
|
| // Returns nullptr if there is no corresponding RenderProcessHost.
|
| @@ -112,6 +115,8 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public base::MemoryCoordinator,
|
| void SetDelegateForTesting(
|
| std::unique_ptr<MemoryCoordinatorDelegate> delegate);
|
|
|
| + MemoryCoordinatorDelegate* delegate() { return delegate_.get(); }
|
| +
|
| // Adds the given ChildMemoryCoordinator as a child of this coordinator.
|
| void AddChildForTesting(int dummy_render_process_id,
|
| mojom::ChildMemoryCoordinatorPtr child);
|
|
|