| 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); |
| 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_; |
| 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 |