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

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

Issue 2940003002: Add pipe implementation for OOP memory logging (Closed)
Patch Set: Comment 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
« no previous file with comments | « chrome/common/profiling/memlog_sender_pipe.h ('k') | chrome/common/profiling/memlog_sender_pipe_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ ~MemlogSenderPipe();
+
+ bool Connect();
+
+ bool Send(const void* data, size_t sz);
+
+ private:
+ base::string16 pipe_id_;
+
+ HANDLE handle_;
+
+ DISALLOW_COPY_AND_ASSIGN(MemlogSenderPipe);
+};
+
+} // namespace profiling
+
+#endif // CHROME_COMMON_PROFILING_MEMLOG_SENDER_PIPE_WIN_H_
« no previous file with comments | « chrome/common/profiling/memlog_sender_pipe.h ('k') | chrome/common/profiling/memlog_sender_pipe_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698