| Index: chrome/profiling/memlog_receiver.h | 
| diff --git a/chrome/profiling/memlog_receiver.h b/chrome/profiling/memlog_receiver.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..49f94fbbd48af512a972e925caa1e539f7fab26a | 
| --- /dev/null | 
| +++ b/chrome/profiling/memlog_receiver.h | 
| @@ -0,0 +1,31 @@ | 
| +// 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_PROFILING_MEMLOG_RECEIVER_H_ | 
| +#define CHROME_PROFILING_MEMLOG_RECEIVER_H_ | 
| + | 
| +#include <vector> | 
| + | 
| +#include "base/memory/ref_counted.h" | 
| +#include "chrome/common/profiling/memlog_stream.h" | 
| +#include "chrome/profiling/address.h" | 
| + | 
| +namespace profiling { | 
| + | 
| +// A log receiver is a sink for parsed allocation events. See also | 
| +// MemlogStreamReceiver which is for the unparsed data blocks. | 
| +class MemlogReceiver { | 
| + public: | 
| +  virtual ~MemlogReceiver() {} | 
| + | 
| +  virtual void OnHeader(const StreamHeader& header) = 0; | 
| +  virtual void OnAlloc(const AllocPacket& alloc_packet, | 
| +                       std::vector<Address>&& stack) = 0; | 
| +  virtual void OnFree(const FreePacket& free_packet) = 0; | 
| +  virtual void OnComplete() = 0; | 
| +}; | 
| + | 
| +}  // namespace profiling | 
| + | 
| +#endif  // CHROME_PROFILING_MEMLOG_RECEIVER_H_ | 
|  |