Skip to content

Commit

Permalink
[ads] Make brave_ads::Database class internal to ads.
Browse files Browse the repository at this point in the history
  • Loading branch information
aseren committed Dec 10, 2024
1 parent 34e1ad1 commit 6216a05
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 11 deletions.
1 change: 0 additions & 1 deletion components/brave_ads/browser/ads_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include "brave/components/brave_ads/core/public/ad_units/notification_ad/notification_ad_value_util.h"
#include "brave/components/brave_ads/core/public/ads_constants.h"
#include "brave/components/brave_ads/core/public/ads_feature.h"
#include "brave/components/brave_ads/core/public/database/database.h"
#include "brave/components/brave_ads/core/public/flags/flags_util.h"
#include "brave/components/brave_ads/core/public/history/site_history.h"
#include "brave/components/brave_ads/core/public/prefs/pref_names.h"
Expand Down
1 change: 1 addition & 0 deletions components/brave_ads/core/internal/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ static_library("internal") {
"creatives/segments_database_util.cc",
"creatives/segments_database_util.h",
"database/database.cc",
"database/database.h",
"database/database_maintenance.cc",
"database/database_maintenance.h",
"database/database_manager.cc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "brave/components/brave_ads/core/internal/global_state/global_state.h"
#include "brave/components/brave_ads/core/mojom/brave_ads.mojom.h"
#include "brave/components/brave_ads/core/public/ad_units/notification_ad/notification_ad_info.h"
#include "brave/components/brave_ads/core/public/database/database.h"
#include "brave/components/brave_ads/core/public/flags/flags_util.h"

namespace brave_ads::test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "base/files/file_path.h"
#include "brave/components/brave_ads/core/internal/ads_client/ads_client_mock.h"
#include "brave/components/brave_ads/core/public/database/database.h"

namespace brave_ads::test {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
#include "brave/components/brave_ads/core/internal/common/test/test_constants.h"
#include "brave/components/brave_ads/core/internal/common/test/test_types.h"
#include "brave/components/brave_ads/core/internal/common/test/time_test_util.h"
#include "brave/components/brave_ads/core/internal/database/database.h"
#include "brave/components/brave_ads/core/internal/database/database_manager.h"
#include "brave/components/brave_ads/core/internal/deprecated/client/client_state_manager.h"
#include "brave/components/brave_ads/core/internal/deprecated/confirmations/confirmation_state_manager.h"
#include "brave/components/brave_ads/core/internal/global_state/global_state.h"
#include "brave/components/brave_ads/core/public/ads.h"
#include "brave/components/brave_ads/core/public/ads_client/ads_client_notifier_observer.h"
#include "brave/components/brave_ads/core/public/ads_constants.h"

namespace brave_ads::test {
Expand Down
2 changes: 1 addition & 1 deletion components/brave_ads/core/internal/database/database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

#include "brave/components/brave_ads/core/public/database/database.h"
#include "brave/components/brave_ads/core/internal/database/database.h"

#include <tuple>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

#ifndef BRAVE_COMPONENTS_BRAVE_ADS_CORE_PUBLIC_DATABASE_DATABASE_H_
#define BRAVE_COMPONENTS_BRAVE_ADS_CORE_PUBLIC_DATABASE_DATABASE_H_
#ifndef BRAVE_COMPONENTS_BRAVE_ADS_CORE_INTERNAL_DATABASE_DATABASE_H_
#define BRAVE_COMPONENTS_BRAVE_ADS_CORE_INTERNAL_DATABASE_DATABASE_H_

#include <memory>

Expand Down Expand Up @@ -80,4 +80,4 @@ class ADS_EXPORT Database final {

} // namespace brave_ads

#endif // BRAVE_COMPONENTS_BRAVE_ADS_CORE_PUBLIC_DATABASE_DATABASE_H_
#endif // BRAVE_COMPONENTS_BRAVE_ADS_CORE_INTERNAL_DATABASE_DATABASE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
#include "base/task/thread_pool.h"
#include "brave/components/brave_ads/core/internal/common/database/database_transaction_util.h"
#include "brave/components/brave_ads/core/internal/common/logging_util.h"
#include "brave/components/brave_ads/core/internal/database/database.h"
#include "brave/components/brave_ads/core/internal/global_state/global_state.h"
#include "brave/components/brave_ads/core/internal/legacy_migration/database/database_constants.h"
#include "brave/components/brave_ads/core/internal/legacy_migration/database/database_creation.h"
#include "brave/components/brave_ads/core/internal/legacy_migration/database/database_migration.h"
#include "brave/components/brave_ads/core/internal/legacy_migration/database/database_raze.h"
#include "brave/components/brave_ads/core/mojom/brave_ads.mojom.h"
#include "brave/components/brave_ads/core/public/database/database.h"

namespace brave_ads {

Expand Down
2 changes: 0 additions & 2 deletions components/brave_ads/core/public/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ source_set("headers") {
"ads_feature.h",
"ads_observer_interface.h",
"ads_util.h",
"database/database.h",
"export.h",
"flags/flags_util.h",
"history/ad_history_feature.h",
Expand All @@ -53,7 +52,6 @@ source_set("headers") {

deps = [
"//base",
"//sql",
"//url",
]

Expand Down

0 comments on commit 6216a05

Please sign in to comment.