1 // Copyright 2021 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/process_singleton.h"
7 // On Fuchsia, we assume that the Component Framework ensures that only a single
8 // Chrome component instance will run against a particular data-directory.
9 // This file contains a stubbed-out ProcessSingleton implementation. :)
11 // In future we will need to support a mechanism for URL launch attempts to
12 // be handled by a running Chrome instance, e.g. by registering the instance as
13 // the Runner for HTTP[S] component URLs.
15 // TODO(crbug.com/1370080): Implement these methods as appropriate.
17 ProcessSingleton::ProcessSingleton(
18 const base::FilePath& user_data_dir,
19 const NotificationCallback& notification_callback) {}
21 ProcessSingleton::~ProcessSingleton() {
22 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
25 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {
26 NOTIMPLEMENTED_LOG_ONCE();
30 ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() {
31 NOTIMPLEMENTED_LOG_ONCE();
35 bool ProcessSingleton::Create() {
36 NOTIMPLEMENTED_LOG_ONCE();
40 void ProcessSingleton::StartWatching() {
41 NOTIMPLEMENTED_LOG_ONCE();
44 void ProcessSingleton::Cleanup() {
45 NOTIMPLEMENTED_LOG_ONCE();