MD Downloads: only show "Today" or "Yesterday" when available
[chromium-blink-merge.git] / tools / ipc_fuzzer / message_lib / message_file.h
blob726571ebb963988a77912733da582c1317f2c6a1
1 // Copyright 2013 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.
5 #ifndef TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
6 #define TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_
8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_vector.h"
10 #include "ipc/ipc_message.h"
12 namespace ipc_fuzzer {
14 typedef ScopedVector<IPC::Message> MessageVector;
16 class MessageFile {
17 public:
18 static bool Read(const base::FilePath& path, MessageVector* messages);
19 static bool Write(const base::FilePath& path, const MessageVector& messages);
21 private:
22 DISALLOW_COPY_AND_ASSIGN(MessageFile);
25 } // namespace ipc_fuzzer
27 #endif // TOOLS_IPC_FUZZER_MESSAGE_LIB_MESSAGE_FILE_H_