summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.h
diff options
context:
space:
mode:
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_