Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: components/offline_pages/core/BUILD.gn

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: more rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/offline_pages/core/BUILD.gn
diff --git a/components/offline_pages/core/BUILD.gn b/components/offline_pages/core/BUILD.gn
index d84ddee40826ebe9c37fdf636b8ab11c77cd8f10..a7918df0817ee67fab231d5f809d274abcd3723c 100644
--- a/components/offline_pages/core/BUILD.gn
+++ b/components/offline_pages/core/BUILD.gn
@@ -1,4 +1,4 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
+# Copyright 2015 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.
@@ -8,6 +8,36 @@ if (is_android) {
static_library("core") {
sources = [
+ "archive_manager.cc",
+ "archive_manager.h",
+ "client_namespace_constants.cc",
+ "client_namespace_constants.h",
+ "client_policy_controller.cc",
+ "client_policy_controller.h",
+ "offline_event_logger.cc",
+ "offline_event_logger.h",
+ "offline_page_archiver.h",
+ "offline_page_client_policy.h",
+ "offline_page_item.cc",
+ "offline_page_item.h",
+ "offline_page_metadata_store.cc",
+ "offline_page_metadata_store.h",
+ "offline_page_metadata_store_sql.cc",
+ "offline_page_metadata_store_sql.h",
+ "offline_page_model.cc",
+ "offline_page_model.h",
+ "offline_page_model_event_logger.cc",
+ "offline_page_model_event_logger.h",
+ "offline_page_model_impl.cc",
+ "offline_page_model_impl.h",
+ "offline_page_model_query.cc",
+ "offline_page_model_query.h",
+ "offline_page_storage_manager.cc",
+ "offline_page_storage_manager.h",
+ "offline_page_types.h",
+ "offline_store_types.h",
+ "snapshot_controller.cc",
+ "snapshot_controller.h",
"task.cc",
"task.h",
"task_queue.cc",
@@ -15,35 +45,84 @@ static_library("core") {
]
deps = [
+ ":switches",
"//base",
+ "//components/keyed_service/core",
+ "//net",
+ "//sql:sql",
+ "//url",
]
}
static_library("test_support") {
testonly = true
sources = [
+ "offline_page_test_archiver.cc",
+ "offline_page_test_archiver.h",
+ "offline_page_test_store.cc",
+ "offline_page_test_store.h",
+ "stub_offline_page_model.cc",
+ "stub_offline_page_model.h",
"test_task.cc",
"test_task.h",
]
deps = [
":core",
+ ":switches",
"//base",
+ "//components/keyed_service/core",
+ "//testing/gtest",
+ "//url",
+ ]
+}
+
+static_library("switches") {
+ sources = [
+ "offline_page_feature.cc",
+ "offline_page_feature.h",
+ ]
+
+ deps = [
+ "//base",
+ "//components/version_info",
]
}
source_set("unit_tests") {
testonly = true
sources = [
+ "archive_manager_unittest.cc",
+ "client_policy_controller_unittest.cc",
+ "offline_page_metadata_store_impl_unittest.cc",
+ "offline_page_model_event_logger_unittest.cc",
+ "offline_page_model_impl_unittest.cc",
+ "offline_page_storage_manager_unittest.cc",
+ "snapshot_controller_unittest.cc",
"task_queue_unittest.cc",
"task_unittest.cc",
]
deps = [
":core",
+ ":switches",
":test_support",
"//base",
"//base/test:test_support",
- "//testing/gtest:gtest",
+ "//sql:sql",
+ "//testing/gtest",
+ "//url",
]
}
+
+if (is_android) {
+ java_cpp_enum("offline_page_model_enums_java") {
+ sources = [
+ "background/request_notifier.h",
+ "background/request_queue_results.h",
+ "background/save_page_request.h",
+ "offline_page_types.h",
+ "offline_store_types.h",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698