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

Unified Diff: content/child/memory/child_memory_coordinator_impl.h

Issue 2321313002: Move components/memory_coordinator -> content/ (Closed)
Patch Set: rebase etc Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/child/memory/child_memory_coordinator_impl.h
diff --git a/components/memory_coordinator/child/child_memory_coordinator_impl.h b/content/child/memory/child_memory_coordinator_impl.h
similarity index 68%
rename from components/memory_coordinator/child/child_memory_coordinator_impl.h
rename to content/child/memory/child_memory_coordinator_impl.h
index c63a7639624ed60b050c1645c02f250e3850cc57..cee8d5a76054309f54ad86056a766a15d5262495 100644
--- a/components/memory_coordinator/child/child_memory_coordinator_impl.h
+++ b/content/child/memory/child_memory_coordinator_impl.h
@@ -2,20 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_MEMORY_COORDINATOR_CHILD_CHILD_MEMORY_COORDINATOR_IMPL_H_
-#define COMPONENTS_MEMORY_COORDINATOR_CHILD_CHILD_MEMORY_COORDINATOR_IMPL_H_
+#ifndef CONTENT_CHILD_MEMORY_CHILD_MEMORY_COORDINATOR_IMPL_H_
+#define CONTENT_CHILD_MEMORY_CHILD_MEMORY_COORDINATOR_IMPL_H_
#include "base/compiler_specific.h"
#include "base/memory/memory_coordinator_client.h"
-#include "components/memory_coordinator/common/memory_coordinator_export.h"
-#include "components/memory_coordinator/common/memory_coordinator_features.h"
-#include "components/memory_coordinator/public/interfaces/child_memory_coordinator.mojom.h"
-#include "components/memory_coordinator/public/interfaces/memory_coordinator.mojom.h"
+#include "content/common/child_memory_coordinator.mojom.h"
+#include "content/common/content_export.h"
+#include "content/common/memory_coordinator.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
-namespace memory_coordinator {
+namespace content {
-class MEMORY_COORDINATOR_EXPORT ChildMemoryCoordinatorDelegate {
+class CONTENT_EXPORT ChildMemoryCoordinatorDelegate {
public:
virtual ~ChildMemoryCoordinatorDelegate() {}
@@ -26,7 +25,7 @@ class MEMORY_COORDINATOR_EXPORT ChildMemoryCoordinatorDelegate {
// ChildMemoryCoordinatorImpl is the implementation of ChildMemoryCoordinator.
// It lives in child processes and is responsible for dispatching memory events
// to its clients.
-class MEMORY_COORDINATOR_EXPORT ChildMemoryCoordinatorImpl
+class CONTENT_EXPORT ChildMemoryCoordinatorImpl
: NON_EXPORTED_BASE(public mojom::ChildMemoryCoordinator) {
public:
// Returns the instance of ChildMemoryCoordinatorImpl. Could be nullptr.
@@ -54,10 +53,10 @@ class MEMORY_COORDINATOR_EXPORT ChildMemoryCoordinatorImpl
// Factory function for creating a ChildMemoryCoordinator for the current
// platform. Doesn't take the ownership of |delegate|.
-MEMORY_COORDINATOR_EXPORT std::unique_ptr<ChildMemoryCoordinatorImpl>
+CONTENT_EXPORT std::unique_ptr<ChildMemoryCoordinatorImpl>
CreateChildMemoryCoordinator(mojom::MemoryCoordinatorHandlePtr parent,
ChildMemoryCoordinatorDelegate* delegate);
-} // namespace memory_coordinator
+} // namespace content
-#endif // COMPONENTS_MEMORY_COORDINATOR_CHILD_CHILD_MEMORY_COORDINATOR_IMPL_H_
+#endif // CONTENT_CHILD_MEMORY_CHILD_MEMORY_COORDINATOR_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698