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

Unified Diff: content/public/common/content_ipc_logging.h

Issue 11347012: Split IPC logging between content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 2 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: content/public/common/content_ipc_logging.h
diff --git a/content/public/common/content_ipc_logging.h b/content/public/common/content_ipc_logging.h
new file mode 100644
index 0000000000000000000000000000000000000000..83fe89818c035029ae40071cfae023616f797e3b
--- /dev/null
+++ b/content/public/common/content_ipc_logging.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_
+#define CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_
+
+#include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
+
+#include "content/common/content_export.h"
+#include "ipc/ipc_logging.h"
+
+namespace content {
+
+#if defined(IPC_MESSAGE_LOG_ENABLED)
+
+// Register a logger for the given IPC message. Use
+//
+// #define IPC_MESSAGE_MACROS_LOG_ENABLED
+// #define IPC_LOG_TABLE_ADD_ENTRY(msg_id, logger)
+// content::RegisterIPCLogger(msg_id, logger)
+//
+// to register IPC messages with the logging system.
+CONTENT_EXPORT void RegisterIPCLogger(uint32 msg_id, LogFunction logger);
+
+#endif
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_CONTENT_IPC_LOGGING_H_

Powered by Google App Engine
This is Rietveld 408576698