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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698