summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.h
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 04:52:56 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 04:52:56 +0000
commitddf124cb8f239ecfbe2339d16f4e3dc849798d20 (patch)
treeefd60310a937d87d9dfd48816779dad690111d83 /chrome/browser/browser_main.h
parent0f7a0191f603800bbf7e387277ed29a6209063bc (diff)
downloadchromium_src-ddf124cb8f239ecfbe2339d16f4e3dc849798d20.zip
chromium_src-ddf124cb8f239ecfbe2339d16f4e3dc849798d20.tar.gz
chromium_src-ddf124cb8f239ecfbe2339d16f4e3dc849798d20.tar.bz2
Getting perf numbers. Will revert.
BUG=none TEST=none TBR=viettrungluu@chromium.org Review URL: http://codereview.chromium.org/502099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.h')
-rw-r--r--chrome/browser/browser_main.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.h b/chrome/browser/browser_main.h
index 44bc6ab..5f675dd 100644
--- a/chrome/browser/browser_main.h
+++ b/chrome/browser/browser_main.h
@@ -7,6 +7,11 @@
#include "build/build_config.h"
+#if defined(OS_MACOSX)
+#include <vector>
+class GURL;
+#endif
+
struct MainFunctionParams;
class MetricsService;
@@ -26,6 +31,23 @@ void DidEndMainMessageLoop();
// are registered with the UMA metrics service.
void RecordBreakpadStatusUMA(MetricsService* metrics);
+#if defined(OS_MACOSX)
+// On Mac, files/URLs to open at startup aren't typically provided on the
+// command line, but rather by Launch Services via an Apple Event. We spin a UI
+// message loop early to catch this event in the app controller and store the
+// URLs.
+
+// Has the app controller been told that it is done? (I.e., has it received
+// |-applicationDidFinishLaunching:|?)
+bool IsStartupComplete();
+
+// The following functions retrieves the URLs and clears the list of URLs,
+// respectively.
+const std::vector<GURL>& GetStartupURLs();
+void ClearStartupURLs();
+
+#endif
+
} // namespace Platform
#endif // CHROME_BROWSER_BROWSER_MAIN_H_