Commit 46f39892 authored by Jeroen Dhollander's avatar Jeroen Dhollander Committed by Commit Bot

Move Libassistant V1 API to public folder

These APIs are temporary shared between //chromeos/services/assistant
and //chromeos/services/libassistant.
To make this clear I've introduced a
//chromeos/services/assistant/public/cpp/migration folder where those
APIs can reside while they are used by both services.

Bug: b/171748795
Test: compiled
Change-Id: If0f0d3055b4d39894c0cdf15e6e07cb79c446263
Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2552998
Commit-Queue: Jeroen Dhollander <jeroendh@chromium.org>
Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830273}
parent 9bb2cb63
...@@ -112,13 +112,14 @@ component("lib") { ...@@ -112,13 +112,14 @@ component("lib") {
deps += [ deps += [
":buildflags", ":buildflags",
":cros_libassistant",
"//chromeos/assistant/internal", "//chromeos/assistant/internal",
"//chromeos/assistant/internal:libassistant", "//chromeos/assistant/internal:libassistant",
"//chromeos/assistant/internal/proto/google3", "//chromeos/assistant/internal/proto/google3",
"//chromeos/dbus", "//chromeos/dbus",
"//chromeos/resources", "//chromeos/resources",
"//chromeos/services/assistant/proxy", "//chromeos/services/assistant/proxy",
"//chromeos/services/assistant/public/cpp/migration",
"//chromeos/services/assistant/public/cpp/migration",
"//chromeos/services/network_config/public/mojom", "//chromeos/services/network_config/public/mojom",
"//chromeos/strings", "//chromeos/strings",
"//libassistant/shared/internal_api:fuchsia_api_helper", "//libassistant/shared/internal_api:fuchsia_api_helper",
...@@ -136,25 +137,6 @@ component("lib") { ...@@ -136,25 +137,6 @@ component("lib") {
} }
} }
# This source_set contains the border APIs that interact with Libassistant.
# TODO(b/171748795): During the migration to a Libassistant mojom service,
# these APIs are used both by the mojom service and from this directory.
# Once the migration is complete these should no longer be used here and
# everything should have been moved to the mojom service.
if (enable_cros_libassistant) {
source_set("cros_libassistant") {
sources = [
"assistant_manager_service_delegate.h",
"cros_platform_api.h",
]
deps = [
"//base",
"//libassistant/shared/public",
]
}
}
source_set("tests") { source_set("tests") {
testonly = true testonly = true
deps = [ deps = [
...@@ -201,10 +183,6 @@ source_set("tests") { ...@@ -201,10 +183,6 @@ source_set("tests") {
"platform/network_provider_impl_unittest.cc", "platform/network_provider_impl_unittest.cc",
"platform/power_manager_provider_impl_unittest.cc", "platform/power_manager_provider_impl_unittest.cc",
"platform/system_provider_impl_unittest.cc", "platform/system_provider_impl_unittest.cc",
"test_support/fake_assistant_manager_service_delegate.cc",
"test_support/fake_assistant_manager_service_delegate.h",
"test_support/fake_platform_api.cc",
"test_support/fake_platform_api.h",
"test_support/fake_service_context.cc", "test_support/fake_service_context.cc",
"test_support/fake_service_context.h", "test_support/fake_service_context.h",
"test_support/mock_media_manager.cc", "test_support/mock_media_manager.cc",
...@@ -217,7 +195,8 @@ source_set("tests") { ...@@ -217,7 +195,8 @@ source_set("tests") {
"//chromeos/assistant/internal:tests", "//chromeos/assistant/internal:tests",
"//chromeos/assistant/internal/proto/google3", "//chromeos/assistant/internal/proto/google3",
"//chromeos/dbus", "//chromeos/dbus",
"//chromeos/services/assistant:cros_libassistant", "//chromeos/services/assistant/public/cpp/migration",
"//chromeos/services/assistant/public/cpp/migration:test_support",
"//chromeos/services/network_config/public/mojom", "//chromeos/services/network_config/public/mojom",
"//services/audio/public/cpp:test_support", "//services/audio/public/cpp:test_support",
"//services/device/public/cpp:test_support", "//services/device/public/cpp:test_support",
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "chromeos/assistant/internal/internal_util.h" #include "chromeos/assistant/internal/internal_util.h"
#include "chromeos/assistant/internal/proto/google3/assistant/api/client_op/device_args.pb.h" #include "chromeos/assistant/internal/proto/google3/assistant/api/client_op/device_args.pb.h"
#include "chromeos/services/assistant/cros_platform_api.h"
#include "chromeos/services/assistant/public/cpp/assistant_service.h" #include "chromeos/services/assistant/public/cpp/assistant_service.h"
#include "chromeos/services/assistant/public/cpp/device_actions.h" #include "chromeos/services/assistant/public/cpp/device_actions.h"
#include "chromeos/services/assistant/public/cpp/migration/cros_platform_api.h"
#include "chromeos/services/assistant/service_context.h" #include "chromeos/services/assistant/service_context.h"
#include "libassistant/shared/public/platform_audio_output.h" #include "libassistant/shared/public/platform_audio_output.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <memory> #include <memory>
#include <string> #include <string>
#include "chromeos/services/assistant/assistant_manager_service_delegate.h" #include "chromeos/services/assistant/public/cpp/migration/assistant_manager_service_delegate.h"
#include "mojo/public/cpp/bindings/pending_remote.h" #include "mojo/public/cpp/bindings/pending_remote.h"
#include "services/device/public/mojom/battery_monitor.mojom.h" #include "services/device/public/mojom/battery_monitor.mojom.h"
......
...@@ -32,14 +32,14 @@ ...@@ -32,14 +32,14 @@
#include "chromeos/constants/chromeos_switches.h" #include "chromeos/constants/chromeos_switches.h"
#include "chromeos/dbus/util/version_loader.h" #include "chromeos/dbus/util/version_loader.h"
#include "chromeos/services/assistant/assistant_device_settings_delegate.h" #include "chromeos/services/assistant/assistant_device_settings_delegate.h"
#include "chromeos/services/assistant/assistant_manager_service_delegate.h"
#include "chromeos/services/assistant/media_session/assistant_media_session.h" #include "chromeos/services/assistant/media_session/assistant_media_session.h"
#include "chromeos/services/assistant/platform_api_impl.h" #include "chromeos/services/assistant/platform_api_impl.h"
#include "chromeos/services/assistant/proxy/service_controller.h" #include "chromeos/services/assistant/proxy/service_controller.h"
#include "chromeos/services/assistant/public/cpp/assistant_client.h" #include "chromeos/services/assistant/public/cpp/assistant_client.h"
#include "chromeos/services/assistant/public/cpp/device_actions.h" #include "chromeos/services/assistant/public/cpp/device_actions.h"
#include "chromeos/services/assistant/public/cpp/features.h" #include "chromeos/services/assistant/public/cpp/features.h"
#include "chromeos/services/assistant/public/cpp/libassistant_v1_api.h" #include "chromeos/services/assistant/public/cpp/migration/assistant_manager_service_delegate.h"
#include "chromeos/services/assistant/public/cpp/migration/libassistant_v1_api.h"
#include "chromeos/services/assistant/public/shared/utils.h" #include "chromeos/services/assistant/public/shared/utils.h"
#include "chromeos/services/assistant/service_context.h" #include "chromeos/services/assistant/service_context.h"
#include "chromeos/services/assistant/utils.h" #include "chromeos/services/assistant/utils.h"
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
#include "chromeos/services/assistant/assistant_manager_service.h" #include "chromeos/services/assistant/assistant_manager_service.h"
#include "chromeos/services/assistant/public/cpp/assistant_service.h" #include "chromeos/services/assistant/public/cpp/assistant_service.h"
#include "chromeos/services/assistant/public/cpp/features.h" #include "chromeos/services/assistant/public/cpp/features.h"
#include "chromeos/services/assistant/public/cpp/migration/fake_assistant_manager_service_delegate.h"
#include "chromeos/services/assistant/service_context.h" #include "chromeos/services/assistant/service_context.h"
#include "chromeos/services/assistant/test_support/fake_assistant_manager_service_delegate.h"
#include "chromeos/services/assistant/test_support/fake_service_context.h" #include "chromeos/services/assistant/test_support/fake_service_context.h"
#include "chromeos/services/assistant/test_support/fully_initialized_assistant_state.h" #include "chromeos/services/assistant/test_support/fully_initialized_assistant_state.h"
#include "chromeos/services/assistant/test_support/mock_assistant_interaction_subscriber.h" #include "chromeos/services/assistant/test_support/mock_assistant_interaction_subscriber.h"
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#include "base/callback_helpers.h" #include "base/callback_helpers.h"
#include "chromeos/dbus/util/version_loader.h" #include "chromeos/dbus/util/version_loader.h"
#include "chromeos/services/assistant/assistant_manager_service_impl.h" #include "chromeos/services/assistant/assistant_manager_service_impl.h"
#include "chromeos/services/assistant/cros_platform_api.h"
#include "chromeos/services/assistant/public/cpp/features.h" #include "chromeos/services/assistant/public/cpp/features.h"
#include "chromeos/services/assistant/public/cpp/migration/cros_platform_api.h"
#include "chromeos/services/assistant/public/proto/assistant_device_settings_ui.pb.h" #include "chromeos/services/assistant/public/proto/assistant_device_settings_ui.pb.h"
#include "chromeos/services/assistant/public/proto/settings_ui.pb.h" #include "chromeos/services/assistant/public/proto/settings_ui.pb.h"
#include "chromeos/services/assistant/service_context.h" #include "chromeos/services/assistant/service_context.h"
......
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
#include <vector> #include <vector>
#include "chromeos/audio/cras_audio_handler.h" #include "chromeos/audio/cras_audio_handler.h"
#include "chromeos/services/assistant/cros_platform_api.h"
#include "chromeos/services/assistant/platform/audio_input_provider_impl.h" #include "chromeos/services/assistant/platform/audio_input_provider_impl.h"
#include "chromeos/services/assistant/platform/audio_output_provider_impl.h" #include "chromeos/services/assistant/platform/audio_output_provider_impl.h"
#include "chromeos/services/assistant/platform/file_provider_impl.h" #include "chromeos/services/assistant/platform/file_provider_impl.h"
#include "chromeos/services/assistant/platform/network_provider_impl.h" #include "chromeos/services/assistant/platform/network_provider_impl.h"
#include "chromeos/services/assistant/platform/system_provider_impl.h" #include "chromeos/services/assistant/platform/system_provider_impl.h"
#include "chromeos/services/assistant/public/cpp/assistant_service.h" #include "chromeos/services/assistant/public/cpp/assistant_service.h"
#include "chromeos/services/assistant/public/cpp/migration/cros_platform_api.h"
#include "libassistant/shared/public/platform_auth.h" #include "libassistant/shared/public/platform_auth.h"
#include "mojo/public/cpp/bindings/pending_remote.h" #include "mojo/public/cpp/bindings/pending_remote.h"
#include "services/device/public/mojom/battery_monitor.mojom.h" #include "services/device/public/mojom/battery_monitor.mojom.h"
......
...@@ -19,8 +19,8 @@ source_set("proxy") { ...@@ -19,8 +19,8 @@ source_set("proxy") {
"//chromeos/assistant/internal", "//chromeos/assistant/internal",
"//chromeos/assistant/internal/proto/google3", "//chromeos/assistant/internal/proto/google3",
"//chromeos/constants", "//chromeos/constants",
"//chromeos/services/assistant:cros_libassistant",
"//chromeos/services/assistant/public/cpp", "//chromeos/services/assistant/public/cpp",
"//chromeos/services/assistant/public/cpp/migration",
"//chromeos/services/libassistant", "//chromeos/services/libassistant",
"//chromeos/services/libassistant/public/mojom", "//chromeos/services/libassistant/public/mojom",
"//libassistant/shared/internal_api:fuchsia_api_helper", "//libassistant/shared/internal_api:fuchsia_api_helper",
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
#include "chromeos/assistant/internal/cros_display_connection.h" #include "chromeos/assistant/internal/cros_display_connection.h"
#include "chromeos/assistant/internal/internal_util.h" #include "chromeos/assistant/internal/internal_util.h"
#include "chromeos/constants/chromeos_features.h" #include "chromeos/constants/chromeos_features.h"
#include "chromeos/services/assistant/assistant_manager_service_delegate.h"
#include "chromeos/services/assistant/public/cpp/features.h" #include "chromeos/services/assistant/public/cpp/features.h"
#include "chromeos/services/assistant/public/cpp/libassistant_v1_api.h" #include "chromeos/services/assistant/public/cpp/migration/assistant_manager_service_delegate.h"
#include "chromeos/services/assistant/public/cpp/migration/libassistant_v1_api.h"
#include "libassistant/shared/internal_api/assistant_manager_internal.h" #include "libassistant/shared/internal_api/assistant_manager_internal.h"
#include "libassistant/shared/internal_api/fuchsia_api_helper.h" #include "libassistant/shared/internal_api/fuchsia_api_helper.h"
......
...@@ -24,8 +24,6 @@ component("cpp") { ...@@ -24,8 +24,6 @@ component("cpp") {
"device_actions.h", "device_actions.h",
"features.cc", "features.cc",
"features.h", "features.h",
"libassistant_v1_api.cc",
"libassistant_v1_api.h",
] ]
public_deps = [ public_deps = [
......
# Copyright 2020 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.
import("//chromeos/assistant/assistant.gni")
assert(is_chromeos)
assert(enable_cros_libassistant)
component("migration") {
defines = [ "IS_ASSISTANT_SERVICE_PUBLIC_MIGRATION_IMPL" ]
sources = [
"assistant_manager_service_delegate.h",
"cros_platform_api.h",
"libassistant_v1_api.cc",
"libassistant_v1_api.h",
]
public_deps = [ "//libassistant/shared/public" ]
deps = [ "//base" ]
}
component("test_support") {
testonly = true
output_name = "migration_test_support"
defines = [ "IS_ASSISTANT_SERVICE_MIGRATION_TEST_SUPPORT_IMPL" ]
sources = [
"fake_assistant_manager_service_delegate.cc",
"fake_assistant_manager_service_delegate.h",
"fake_platform_api.cc",
"fake_platform_api.h",
]
deps = [
":migration",
"//base",
"//chromeos/assistant/internal:test_support",
"//chromeos/assistant/internal/proto/google3",
"//libassistant/shared/public",
]
}
A migration is currently in progress, moving the Libassistant APIs to
//chromeos/services/libassistant.
The files in this directory are temporary shared between
//chromeos/service/assistant and //chromeos/services/libassistant.
Once the migration is over, this directory should be gone.
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROMEOS_SERVICES_ASSISTANT_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_ #ifndef CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_
#define CHROMEOS_SERVICES_ASSISTANT_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_ #define CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_
#include <memory> #include <memory>
...@@ -49,4 +49,4 @@ class AssistantManagerServiceDelegate { ...@@ -49,4 +49,4 @@ class AssistantManagerServiceDelegate {
} // namespace assistant } // namespace assistant
} // namespace chromeos } // namespace chromeos
#endif // CHROMEOS_SERVICES_ASSISTANT_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_ #endif // CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROMEOS_SERVICES_ASSISTANT_CROS_PLATFORM_API_H_ #ifndef CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_CROS_PLATFORM_API_H_
#define CHROMEOS_SERVICES_ASSISTANT_CROS_PLATFORM_API_H_ #define CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_CROS_PLATFORM_API_H_
#include "base/macros.h" #include "base/macros.h"
#include "libassistant/shared/public/platform_api.h" #include "libassistant/shared/public/platform_api.h"
...@@ -34,4 +34,4 @@ class CrosPlatformApi : public assistant_client::PlatformApi { ...@@ -34,4 +34,4 @@ class CrosPlatformApi : public assistant_client::PlatformApi {
} // namespace assistant } // namespace assistant
} // namespace chromeos } // namespace chromeos
#endif // CHROMEOS_SERVICES_ASSISTANT_CROS_PLATFORM_API_H_ #endif // CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_CROS_PLATFORM_API_H_
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "chromeos/services/assistant/test_support/fake_assistant_manager_service_delegate.h" #include "chromeos/services/assistant/public/cpp/migration/fake_assistant_manager_service_delegate.h"
#include "chromeos/assistant/internal/test_support/fake_assistant_manager.h" #include "chromeos/assistant/internal/test_support/fake_assistant_manager.h"
#include "chromeos/assistant/internal/test_support/fake_assistant_manager_internal.h" #include "chromeos/assistant/internal/test_support/fake_assistant_manager_internal.h"
#include "chromeos/services/assistant/test_support/fake_platform_api.h" #include "chromeos/services/assistant/public/cpp/migration/fake_platform_api.h"
namespace chromeos { namespace chromeos {
namespace assistant { namespace assistant {
......
...@@ -2,10 +2,15 @@ ...@@ -2,10 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROMEOS_SERVICES_ASSISTANT_TEST_SUPPORT_FAKE_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_ #ifndef CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_FAKE_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_
#define CHROMEOS_SERVICES_ASSISTANT_TEST_SUPPORT_FAKE_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_ #define CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_FAKE_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_
#include "chromeos/services/assistant/assistant_manager_service_delegate.h" #include "base/component_export.h"
#include <memory>
#include <string>
#include "chromeos/services/assistant/public/cpp/migration/assistant_manager_service_delegate.h"
namespace chromeos { namespace chromeos {
namespace assistant { namespace assistant {
...@@ -15,7 +20,8 @@ class FakeAssistantManagerInternal; ...@@ -15,7 +20,8 @@ class FakeAssistantManagerInternal;
// Implementation of |AssistantManagerServiceDelegate| that returns fake // Implementation of |AssistantManagerServiceDelegate| that returns fake
// instances for all of the member methods. Used during unittests. // instances for all of the member methods. Used during unittests.
class FakeAssistantManagerServiceDelegate class COMPONENT_EXPORT(ASSISTANT_SERVICE_MIGRATION_TEST_SUPPORT)
FakeAssistantManagerServiceDelegate
: public AssistantManagerServiceDelegate { : public AssistantManagerServiceDelegate {
public: public:
FakeAssistantManagerServiceDelegate(); FakeAssistantManagerServiceDelegate();
...@@ -56,4 +62,4 @@ class FakeAssistantManagerServiceDelegate ...@@ -56,4 +62,4 @@ class FakeAssistantManagerServiceDelegate
} // namespace assistant } // namespace assistant
} // namespace chromeos } // namespace chromeos
#endif // CHROMEOS_SERVICES_ASSISTANT_TEST_SUPPORT_FAKE_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_ #endif // CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_FAKE_ASSISTANT_MANAGER_SERVICE_DELEGATE_H_
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <vector> #include <vector>
#include "base/notreached.h" #include "base/notreached.h"
#include "chromeos/services/assistant/test_support/fake_platform_api.h" #include "chromeos/services/assistant//public/cpp/migration/fake_platform_api.h"
#include "libassistant/shared/public/platform_audio_output.h" #include "libassistant/shared/public/platform_audio_output.h"
namespace chromeos { namespace chromeos {
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROMEOS_SERVICES_ASSISTANT_TEST_SUPPORT_FAKE_PLATFORM_API_H_ #ifndef CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_FAKE_PLATFORM_API_H_
#define CHROMEOS_SERVICES_ASSISTANT_TEST_SUPPORT_FAKE_PLATFORM_API_H_ #define CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_FAKE_PLATFORM_API_H_
#include <memory> #include <memory>
#include "base/macros.h" #include "base/macros.h"
#include "chromeos/services/assistant/cros_platform_api.h" #include "chromeos/services/assistant/public/cpp/migration/cros_platform_api.h"
namespace chromeos { namespace chromeos {
namespace assistant { namespace assistant {
...@@ -42,4 +42,4 @@ class FakePlatformApi : public CrosPlatformApi { ...@@ -42,4 +42,4 @@ class FakePlatformApi : public CrosPlatformApi {
} // namespace assistant } // namespace assistant
} // namespace chromeos } // namespace chromeos
#endif // CHROMEOS_SERVICES_ASSISTANT_TEST_SUPPORT_FAKE_PLATFORM_API_H_ #endif // CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_FAKE_PLATFORM_API_H_
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "chromeos/services/assistant/public/cpp/libassistant_v1_api.h" #include "chromeos/services/assistant/public/cpp/migration/libassistant_v1_api.h"
#include "base/check.h" #include "base/check.h"
#include "base/check_op.h" #include "base/check_op.h"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_LIBASSISTANT_V1_API_H_ #ifndef CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_LIBASSISTANT_V1_API_H_
#define CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_LIBASSISTANT_V1_API_H_ #define CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_LIBASSISTANT_V1_API_H_
#include "base/component_export.h" #include "base/component_export.h"
...@@ -19,7 +19,7 @@ namespace assistant { ...@@ -19,7 +19,7 @@ namespace assistant {
// Only a single instance of this class may exist at any given time. // Only a single instance of this class may exist at any given time.
// TODO(b/171748795): Remove once all Libassistant access has been moved in the // TODO(b/171748795): Remove once all Libassistant access has been moved in the
// //chromeos/services/libassistant service. // //chromeos/services/libassistant service.
class COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) LibassistantV1Api { class COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC_MIGRATION) LibassistantV1Api {
public: public:
LibassistantV1Api( LibassistantV1Api(
assistant_client::AssistantManager* assistant_manager, assistant_client::AssistantManager* assistant_manager,
...@@ -46,4 +46,4 @@ class COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) LibassistantV1Api { ...@@ -46,4 +46,4 @@ class COMPONENT_EXPORT(ASSISTANT_SERVICE_PUBLIC) LibassistantV1Api {
} // namespace assistant } // namespace assistant
} // namespace chromeos } // namespace chromeos
#endif // CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_LIBASSISTANT_V1_API_H_ #endif // CHROMEOS_SERVICES_ASSISTANT_PUBLIC_CPP_MIGRATION_LIBASSISTANT_V1_API_H_
...@@ -8,7 +8,10 @@ component("libassistant") { ...@@ -8,7 +8,10 @@ component("libassistant") {
"libassistant_service.h", "libassistant_service.h",
] ]
deps = [ "//chromeos/services/libassistant/public/mojom" ] deps = [
"//chromeos/services/assistant/public/cpp/migration",
"//chromeos/services/libassistant/public/mojom",
]
defines = [ "IS_LIBASSISTANT_SERVICE_IMPL" ] defines = [ "IS_LIBASSISTANT_SERVICE_IMPL" ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment