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

Unified Diff: content/public/common/external_ipc_dumper.cc

Issue 2043933002: Move IPC fuzzer switches and helpers from chrome/common to content/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/external_ipc_dumper.cc
diff --git a/chrome/common/external_ipc_dumper.cc b/content/public/common/external_ipc_dumper.cc
similarity index 94%
rename from chrome/common/external_ipc_dumper.cc
rename to content/public/common/external_ipc_dumper.cc
index 4e0d671be7260ed75483b0b4f9aafe58981f2a66..ff5ae934c987668047ea110d0755f8fa68fbd889 100644
--- a/chrome/common/external_ipc_dumper.cc
+++ b/content/public/common/external_ipc_dumper.cc
@@ -7,7 +7,9 @@
#include "base/native_library.h"
#include "base/path_service.h"
#include "build/build_config.h"
-#include "chrome/common/external_ipc_dumper.h"
+#include "content/public/common/external_ipc_dumper.h"
+
+namespace {
typedef IPC::ChannelProxy::OutgoingMessageFilter* (*GetFilterFunction)();
typedef void (*SetDumpDirectoryFunction)(const base::FilePath&);
@@ -21,6 +23,10 @@ const char kSetDumpDirectoryEntryName[] = "SetDumpDirectory";
#define IPC_MESSAGE_DUMP_MODULE FILE_PATH_LITERAL("libipc_message_dump.so")
#endif
+} // namespace
+
+namespace content {
+
IPC::ChannelProxy::OutgoingMessageFilter* LoadExternalIPCDumper(
const base::FilePath& dump_directory) {
base::FilePath module_path;
@@ -59,3 +65,5 @@ IPC::ChannelProxy::OutgoingMessageFilter* LoadExternalIPCDumper(
return filter_entry_point();
}
+
+} // namespace content
« content/public/common/external_ipc_dumper.h ('K') | « content/public/common/external_ipc_dumper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698