Benjamin Lerman | a379644 | 2021-08-05 12:39:25 | [diff] [blame] | 1 | // 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 | |
| 15 | ProcessSingleton::ProcessSingleton( |
| 16 | const base::FilePath& user_data_dir, |
| 17 | const NotificationCallback& notification_callback) {} |
| 18 | |
| 19 | ProcessSingleton::~ProcessSingleton() { |
| 20 | DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); |
| 21 | } |
| 22 | |
| 23 | ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() { |
| 24 | // TODO(crbug.com/1235293) |
| 25 | NOTIMPLEMENTED_LOG_ONCE(); |
| 26 | return PROCESS_NONE; |
| 27 | } |
| 28 | |
| 29 | ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() { |
| 30 | // TODO(crbug.com/1235293) |
| 31 | NOTIMPLEMENTED_LOG_ONCE(); |
| 32 | return PROCESS_NONE; |
| 33 | } |
| 34 | |
| 35 | bool ProcessSingleton::Create() { |
| 36 | // TODO(crbug.com/1235293) |
| 37 | NOTIMPLEMENTED_LOG_ONCE(); |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | void ProcessSingleton::Cleanup() { |
| 42 | // TODO(crbug.com/1235293) |
| 43 | NOTIMPLEMENTED_LOG_ONCE(); |
| 44 | } |