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

Unified Diff: content/browser/memory/memory_coordinator_impl.h

Issue 2586873002: Change type of MemoryCoordinatorImpl::ChildInfo::memory_state (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d95ab53af30862bd2f45a39937c59f4b84bfda28..b63bc4faac41250c42ffc8517868815ffd53a871 100644
--- a/content/browser/memory/memory_coordinator_impl.h
+++ b/content/browser/memory/memory_coordinator_impl.h
@@ -57,12 +57,11 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public NotificationObserver,
// Dispatches a memory state change to the provided process. Returns true if
// the process is tracked by this coordinator and successfully dispatches,
// returns false otherwise.
- bool SetChildMemoryState(
- int render_process_id, mojom::MemoryState memory_state);
+ bool SetChildMemoryState(int render_process_id, MemoryState memory_state);
// Returns the memory state of the specified render process. Returns UNKNOWN
// if the process is not tracked by this coordinator.
- mojom::MemoryState GetChildMemoryState(int render_process_id) const;
+ MemoryState GetChildMemoryState(int render_process_id) const;
// Records memory pressure notifications. Called by MemoryPressureMonitor.
// TODO(bashi): Remove this when MemoryPressureMonitor is retired.
@@ -115,7 +114,7 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public NotificationObserver,
ChildInfo(const ChildInfo& rhs);
~ChildInfo();
- mojom::MemoryState memory_state;
+ MemoryState memory_state;
bool is_visible = false;
std::unique_ptr<MemoryCoordinatorHandleImpl> handle;
};
@@ -146,8 +145,8 @@ class CONTENT_EXPORT MemoryCoordinatorImpl : public NotificationObserver,
// Called by SetChildMemoryState() to determine a child memory state based on
// the current status of the child process.
- mojom::MemoryState OverrideGlobalState(mojom::MemoryState memroy_state,
- const ChildInfo& child);
+ MemoryState OverrideGlobalState(MemoryState memroy_state,
+ const ChildInfo& child);
void SetDelegateForTesting(
std::unique_ptr<MemoryCoordinatorDelegate> delegate);
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698