blob: 9ab174518591c620567fe8f8b2d857caf1651dd0 [file] [log] [blame]
Benjamin Lermana3796442021-08-05 12:39:251// Copyright 2021 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// On Fuchsia, we assume that the Component Framework ensures that only a single
6// Chrome component instance will run against a particular data-directory.
7// This file contains a stubbed-out ProcessSingleton implementation. :)
8//
9// In future we will need to support a mechanism for URL launch attempts to
10// be handled by a running Chrome instance, e.g. by registering the instance as
11// the Runner for HTTP[S] component URLs.
12
13#include "chrome/browser/process_singleton.h"
14
15ProcessSingleton::ProcessSingleton(
16 const base::FilePath& user_data_dir,
17 const NotificationCallback& notification_callback) {}
18
19ProcessSingleton::~ProcessSingleton() {
20 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
21}
22
23ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {
24 // TODO(crbug.com/1235293)
25 NOTIMPLEMENTED_LOG_ONCE();
26 return PROCESS_NONE;
27}
28
29ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() {
30 // TODO(crbug.com/1235293)
31 NOTIMPLEMENTED_LOG_ONCE();
32 return PROCESS_NONE;
33}
34
35bool ProcessSingleton::Create() {
36 // TODO(crbug.com/1235293)
37 NOTIMPLEMENTED_LOG_ONCE();
38 return true;
39}
40
41void ProcessSingleton::Cleanup() {
42 // TODO(crbug.com/1235293)
43 NOTIMPLEMENTED_LOG_ONCE();
44}