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

Unified Diff: chrome/common/profiling/memlog_sender_pipe_win.h

Issue 2940003002: Add pipe implementation for OOP memory logging (Closed)
Patch Set: Explicit Created 3 years, 6 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: chrome/common/profiling/memlog_sender_pipe_win.h
diff --git a/chrome/common/profiling/memlog_sender_pipe_win.h b/chrome/common/profiling/memlog_sender_pipe_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..9abeb17a797b4e4f988e5c6c79d876af819d8a26
--- /dev/null
+++ b/chrome/common/profiling/memlog_sender_pipe_win.h
@@ -0,0 +1,34 @@
+// Copyright 2017 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.
+
+#ifndef CHROME_COMMON_PROFILING_MEMLOG_SENDER_PIPE_WIN_H_
+#define CHROME_COMMON_PROFILING_MEMLOG_SENDER_PIPE_WIN_H_
+
+#include <windows.h>
+
+#include "base/macros.h"
+#include "base/strings/string16.h"
+
+namespace profiling {
+
+class MemlogSenderPipe {
+ public:
+ explicit MemlogSenderPipe(const base::string16& pipe_id);
Boris Vidolov 2017/06/15 21:50:59 If the wideness of the characters is the concern,
brettw 2017/06/15 22:12:21 The Posix implementation will need an integer we p
+ ~MemlogSenderPipe();
+
+ bool Connect();
+
+ bool Send(const void* data, size_t sz);
+
+ private:
+ base::string16 pipe_id_;
+
+ HANDLE handle_;
Boris Vidolov 2017/06/15 21:50:59 Again, is it possible to use some higher level cla
brettw 2017/06/15 22:12:21 The main alternative is replacing with Mojo pipes
+
+ DISALLOW_COPY_AND_ASSIGN(MemlogSenderPipe);
+};
+
+} // namespace profiling
+
+#endif // CHROME_COMMON_PROFILING_MEMLOG_SENDER_PIPE_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698