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

Unified Diff: build_tools/debug_server/debug_server/common/rsp_session_log.h

Issue 6312039: RSP proxy that can record session (for playback testing).... (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src/
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: build_tools/debug_server/debug_server/common/rsp_session_log.h
===================================================================
--- build_tools/debug_server/debug_server/common/rsp_session_log.h (revision 0)
+++ build_tools/debug_server/debug_server/common/rsp_session_log.h (revision 0)
@@ -0,0 +1,25 @@
+#ifndef NACL_SDK_BUILD_TOOLS_DEBUG_SERVER_COMMON_RSP_SESSION_LOG_H_
+#define NACL_SDK_BUILD_TOOLS_DEBUG_SERVER_COMMON_RSP_SESSION_LOG_H_
+
+#pragma once
+#include <string>
+#include "debug_blob.h"
+
+namespace rsp {
+class SessionLog {
+ public:
+ SessionLog();
+ ~SessionLog();
+
+ bool OpenToWrite(const std::string& file_name);
+ bool OpenToRead(const std::string& file_name);
+ void Close();
+ void Add(char record_type, const debug::Blob& record);
+ bool GetNextRecord(char* record_type, debug::Blob* record);
+
+ protected:
+ FILE* file_;
+};
+} // namespace rsp
+
+#endif // NACL_SDK_BUILD_TOOLS_DEBUG_SERVER_COMMON_RSP_SESSION_LOG_H_

Powered by Google App Engine
This is Rietveld 408576698