summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-22 15:40:17 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-22 15:40:17 +0200
commit43a42f108af6bcbd91f2672731c3047c26213af1 (patch)
tree7fa092e5f5d873c72f2486a70e26be26f7a38bec /Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp
parentd9cf437c840c6eb7417bdd97e6c40979255d3158 (diff)
downloadqtwebkit-43a42f108af6bcbd91f2672731c3047c26213af1.tar.gz
Imported WebKit commit 302e7806bff028bd1167a1ec7c86a1ee00ecfb49 (http://svn.webkit.org/repository/webkit/trunk@132067)
New snapshot that fixes build without QtWidgets
Diffstat (limited to 'Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp')
-rw-r--r--Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp b/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp
index 771a6eef7..ee4e3c38b 100644
--- a/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp
+++ b/Source/WebKit2/UIProcess/Launcher/ProcessLauncher.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2010, 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -73,12 +73,16 @@ const char* ProcessLauncher::processTypeAsString(ProcessType processType)
switch (processType) {
case WebProcess:
return "webprocess";
+#if ENABLE(PLUGIN_PROCESS)
case PluginProcess:
return "pluginprocess";
+#endif
case NetworkProcess:
return "networkprocess";
+#if ENABLE(SHARED_WORKER_PROCESS)
case SharedWorkerProcess:
return "sharedworkerprocess";
+#endif
}
ASSERT_NOT_REACHED();
@@ -92,20 +96,24 @@ bool ProcessLauncher::getProcessTypeFromString(const char* string, ProcessType&
return true;
}
+#if ENABLE(PLUGIN_PROCESS)
if (!strcmp(string, "pluginprocess")) {
processType = PluginProcess;
return true;
}
+#endif
if (!strcmp(string, "networkprocess")) {
processType = NetworkProcess;
return true;
}
+#if ENABLE(SHARED_WORKER_PROCESS)
if (!strcmp(string, "sharedworkerprocess")) {
processType = SharedWorkerProcess;
return true;
}
+#endif
return false;
}