Chromium Code Reviews| 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_ |