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

Unified Diff: content/browser/devtools/protocol/memory_handler.cc

Issue 1332583002: Architecture for cross-process memory notification suppressing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/browser/devtools/protocol/memory_handler.cc
diff --git a/content/browser/devtools/protocol/memory_handler.cc b/content/browser/devtools/protocol/memory_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..48bf23be390a8909e09e206a52828df49120dabf
--- /dev/null
+++ b/content/browser/devtools/protocol/memory_handler.cc
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/devtools/protocol/memory_handler.h"
+
+#include "base/bind.h"
+#include "content/browser/memory/memory_message_filter.h"
+
+namespace content {
+namespace devtools {
+namespace memory {
+
+MemoryHandler::MemoryHandler() {}
+
+MemoryHandler::~MemoryHandler() {}
+
+MemoryHandler::Response MemoryHandler::SetNotificationsSuppressed(
+ bool suppressed) {
+ content::memory::MemoryMessageFilter::
+ SendSetNotificationsSuppressedToAllProcesses(suppressed);
+ return Response::OK();
Sami 2015/09/08 18:06:56 Is there ever a need to wait for this to complete
petrcermak 2015/09/11 10:43:50 Unfortunately, there is no way to get a callback w
Sami 2015/09/11 11:37:42 Like we discussed, I only meant waiting until the
petrcermak 2015/09/14 12:46:22 I added ack messages from child processes to addre
+}
+
+} // namespace tracing
+} // namespace devtools
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698