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

Side by Side 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 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);
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_
OLDNEW
« 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