summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_launcher_utils.h
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-28 17:27:17 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-28 17:27:17 +0000
commit79b663c6e6ddf89e85cdc566b5d4f368465bb858 (patch)
tree868c35191ee02c8bd7da15b69edc7114007e211a /chrome_frame/chrome_launcher_utils.h
parent84b5647e4a43a55b9b0e8b211684f48222569218 (diff)
downloadchromium_src-79b663c6e6ddf89e85cdc566b5d4f368465bb858.zip
chromium_src-79b663c6e6ddf89e85cdc566b5d4f368465bb858.tar.gz
chromium_src-79b663c6e6ddf89e85cdc566b5d4f368465bb858.tar.bz2
Rewrite of chrome_launcher.exe. ETW-based perf tests suggest that this is on average about 50% faster than the previous version.
Review URL: http://codereview.chromium.org/2278003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_launcher_utils.h')
-rw-r--r--chrome_frame/chrome_launcher_utils.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome_frame/chrome_launcher_utils.h b/chrome_frame/chrome_launcher_utils.h
new file mode 100644
index 0000000..c72569b
--- /dev/null
+++ b/chrome_frame/chrome_launcher_utils.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2009 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 CHROME_FRAME_CHROME_LAUNCHER_H_
+#define CHROME_FRAME_CHROME_LAUNCHER_H_
+
+#include <string>
+
+#include "base/file_path.h"
+
+class CommandLine;
+
+namespace chrome_launcher {
+
+// The base name of the chrome_launcher.exe file.
+extern const wchar_t kLauncherExeBaseName[];
+
+// Creates a command line suitable for launching Chrome. You can add any
+// flags needed before launching.
+//
+// The command-line may use the Chrome executable directly, or use an in-between
+// process if needed for security/elevation purposes. You must delete the
+// returned command line.
+CommandLine* CreateLaunchCommandLine();
+
+// Returns the full path to the Chrome executable.
+FilePath GetChromeExecutablePath();
+
+} // namespace chrome_launcher
+
+#endif // CHROME_FRAME_CHROME_LAUNCHER_H_