-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
guest_os: Add a DBus front-end for
vmc launch
This front-end will be used by vmc to launch VMs through chrome. The purpose of which is to allow chrome to be a central authority on the correct way to launch a given vm product. See go/vmc-launch "phase 2" for details. Bug: b/200896773 Change-Id: I26587482160afd4b8a850c077eb44b6d9ec6d854 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3527900 Reviewed-by: Steven Bennetts <stevenjb@chromium.org> Reviewed-by: David Munro <davidmunro@google.com> Commit-Queue: Nic Hollingum <hollingum@google.com> Cr-Commit-Position: refs/heads/main@{#988802}
- Loading branch information
Nicholas Hollingum
authored and
Chromium LUCI CQ
committed
Apr 5, 2022
1 parent
8db4a99
commit 44e1d45
Showing
6 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2022 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/ash/guest_os/guest_os_launcher.h" | ||
|
||
namespace guest_os::launcher { | ||
|
||
void EnsureLaunched(const vm_tools::launch::EnsureVmLaunchedRequest& request, | ||
LaunchCallback response_callback) { | ||
std::move(response_callback).Run(ResponseType::Unexpected("Not Implemented")); | ||
} | ||
|
||
} // namespace guest_os::launcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2022 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. | ||
|
||
#ifndef CHROME_BROWSER_ASH_GUEST_OS_GUEST_OS_LAUNCHER_H_ | ||
#define CHROME_BROWSER_ASH_GUEST_OS_GUEST_OS_LAUNCHER_H_ | ||
|
||
#include "chrome/browser/ash/borealis/infra/expected.h" | ||
#include "chromeos/dbus/vm_launch/launch.pb.h" | ||
|
||
namespace guest_os::launcher { | ||
|
||
using ResponseType = | ||
borealis::Expected<vm_tools::launch::EnsureVmLaunchedResponse, std::string>; | ||
|
||
using LaunchCallback = base::OnceCallback<void(ResponseType)>; | ||
|
||
void EnsureLaunched(const vm_tools::launch::EnsureVmLaunchedRequest& request, | ||
LaunchCallback response_callback); | ||
|
||
} // namespace guest_os::launcher | ||
|
||
#endif // CHROME_BROWSER_ASH_GUEST_OS_GUEST_OS_LAUNCHER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters