Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_PROFILING_MEMLOG_SENDER_PIPE_WIN_H_ | |
| 6 #define CHROME_COMMON_PROFILING_MEMLOG_SENDER_PIPE_WIN_H_ | |
| 7 | |
| 8 #include <windows.h> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/strings/string16.h" | |
| 12 | |
| 13 namespace profiling { | |
| 14 | |
| 15 class MemlogSenderPipe { | |
| 16 public: | |
| 17 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
| |
| 18 ~MemlogSenderPipe(); | |
| 19 | |
| 20 bool Connect(); | |
| 21 | |
| 22 bool Send(const void* data, size_t sz); | |
| 23 | |
| 24 private: | |
| 25 base::string16 pipe_id_; | |
| 26 | |
| 27 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
| |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(MemlogSenderPipe); | |
| 30 }; | |
| 31 | |
| 32 } // namespace profiling | |
| 33 | |
| 34 #endif // CHROME_COMMON_PROFILING_MEMLOG_SENDER_PIPE_WIN_H_ | |
| OLD | NEW |