process_singleton_fuchsia.cc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. // On Fuchsia, we assume that the Component Framework ensures that only a single
  5. // Chrome component instance will run against a particular data-directory.
  6. // This file contains a stubbed-out ProcessSingleton implementation. :)
  7. //
  8. // In future we will need to support a mechanism for URL launch attempts to
  9. // be handled by a running Chrome instance, e.g. by registering the instance as
  10. // the Runner for HTTP[S] component URLs.
  11. #include "chrome/browser/process_singleton.h"
  12. ProcessSingleton::ProcessSingleton(
  13. const base::FilePath& user_data_dir,
  14. const NotificationCallback& notification_callback) {}
  15. ProcessSingleton::~ProcessSingleton() {
  16. DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
  17. }
  18. ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {
  19. // TODO(crbug.com/1235293)
  20. NOTIMPLEMENTED_LOG_ONCE();
  21. return PROCESS_NONE;
  22. }
  23. ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessOrCreate() {
  24. // TODO(crbug.com/1235293)
  25. NOTIMPLEMENTED_LOG_ONCE();
  26. return PROCESS_NONE;
  27. }
  28. bool ProcessSingleton::Create() {
  29. // TODO(crbug.com/1235293)
  30. NOTIMPLEMENTED_LOG_ONCE();
  31. return true;
  32. }
  33. void ProcessSingleton::StartWatching() {
  34. // TODO(crbug.com/1235293)
  35. NOTIMPLEMENTED_LOG_ONCE();
  36. }
  37. void ProcessSingleton::Cleanup() {
  38. // TODO(crbug.com/1235293)
  39. NOTIMPLEMENTED_LOG_ONCE();
  40. }