diff options
author | Ben Murdoch <benm@google.com> | 2010-07-29 17:14:53 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-08-04 14:29:45 +0100 |
commit | c407dc5cd9bdc5668497f21b26b09d988ab439de (patch) | |
tree | 7eaf8707c0309516bdb042ad976feedaf72b0bb1 /chrome/browser/process_singleton_mac.cc | |
parent | 0998b1cdac5733f299c12d88bc31ef9c8035b8fa (diff) | |
download | external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.zip external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.tar.gz external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.tar.bz2 |
Merge Chromium src@r53293
Change-Id: Ia79acf8670f385cee48c45b0a75371d8e950af34
Diffstat (limited to 'chrome/browser/process_singleton_mac.cc')
-rw-r--r-- | chrome/browser/process_singleton_mac.cc | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/chrome/browser/process_singleton_mac.cc b/chrome/browser/process_singleton_mac.cc new file mode 100644 index 0000000..23d317c --- /dev/null +++ b/chrome/browser/process_singleton_mac.cc @@ -0,0 +1,47 @@ +// 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. + +#include "chrome/browser/process_singleton.h" + +// This class is used to funnel messages to a single instance of the browser +// process. This is needed for several reasons on other platforms. +// +// On Windows, when the user re-opens the application from the shell (e.g. an +// explicit double-click, a shortcut that opens a webpage, etc.) we need to send +// the message to the currently-existing copy of the browser. +// +// On Linux, opening a URL is done by creating an instance of the web browser +// process and passing it the URL to go to on its commandline. +// +// Neither of those cases apply on the Mac. Launch Services ensures that there +// is only one instance of the process, and we get URLs to open via AppleEvents +// and, once again, the Launch Services system. We have no need to manage this +// ourselves. + +ProcessSingleton::ProcessSingleton(const FilePath& user_data_dir) { + // This space intentionally left blank. +} + +ProcessSingleton::~ProcessSingleton() { + // This space intentionally left blank. +} + +ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() { + // This space intentionally left blank. + return PROCESS_NONE; +} + +ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() { + // This space intentionally left blank. + return PROCESS_NONE; +} + +bool ProcessSingleton::Create() { + // This space intentionally left blank. + return true; +} + +void ProcessSingleton::Cleanup() { + // This space intentionally left blank. +} |