summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 22:17:29 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 22:17:29 +0000
commitfc14cef961fa421cc1c44e373e3f3f0fb84ec545 (patch)
treeb7f442cf807c187103f4340c9aa9a0b37e3c94d6 /chrome/common
parent933fbfb3a9813625eea8c2258748ce86210444a8 (diff)
downloadchromium_src-fc14cef961fa421cc1c44e373e3f3f0fb84ec545.zip
chromium_src-fc14cef961fa421cc1c44e373e3f3f0fb84ec545.tar.gz
chromium_src-fc14cef961fa421cc1c44e373e3f3f0fb84ec545.tar.bz2
Move MessageWindow out into its own file. BrowserInit is now cross-platform-capable.
Fix up the header includes in browser_init.cc/h removing a bunch of windows stuff. Review URL: http://codereview.chromium.org/19034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/temp_scaffolding_stubs.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 034de96..c4152ba 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -51,20 +51,22 @@ class Upgrade {
static bool SwapNewChromeExeIfPresent() { return true; }
};
+// TODO(port): MessageWindow is very windows-specific, but provides the concept
+// of singleton browser process per user-data-dir. Investigate how
+// to achieve this on other platforms and see if this API works.
+class MessageWindow {
+ public:
+ explicit MessageWindow(const std::wstring& user_data_dir) { }
+ ~MessageWindow() { }
+ bool NotifyOtherProcess() { return false; }
+ void HuntForZombieChromeProcesses() { }
+ void Create() { }
+ void Lock() { }
+ void Unlock() { }
+};
+
class BrowserInit {
public:
- // TODO(port): MessageWindow is very windows specific and shouldn't be part of
- // BrowserInit at all.
- class MessageWindow {
- public:
- explicit MessageWindow(const std::wstring& user_data_dir) { }
- ~MessageWindow() { }
- bool NotifyOtherProcess() { return false; }
- void HuntForZombieChromeProcesses() { }
- void Create() { }
- void Lock() { }
- void Unlock() { }
- };
static bool ProcessCommandLine(const CommandLine& parsed_command_line,
const std::wstring& cur_dir,
PrefService* prefs, bool process_startup,