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

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

Issue 2873383004: [Offline Prefetch] Send GeneratePageBundleRequest to the server (Closed)
Patch Set: Update Created 3 years, 7 months 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/prefetch/BUILD.gn
diff --git a/components/offline_pages/core/prefetch/BUILD.gn b/components/offline_pages/core/prefetch/BUILD.gn
index 85d9fcba5f06856bec8809f4051056e683447ded..c89b857eb1a49f4300e97e69e21f5e2afd947894 100644
--- a/components/offline_pages/core/prefetch/BUILD.gn
+++ b/components/offline_pages/core/prefetch/BUILD.gn
@@ -5,9 +5,12 @@
if (is_android) {
import("//build/config/android/rules.gni")
}
+import("//third_party/protobuf/proto_library.gni")
static_library("prefetch") {
sources = [
+ "generate_page_bundle_request.cc",
+ "generate_page_bundle_request.h",
"prefetch_request_fetcher.cc",
"prefetch_request_fetcher.h",
"prefetch_service.h",
@@ -15,6 +18,9 @@ static_library("prefetch") {
"prefetch_service_impl.h",
]
+ public_deps = [
+ ":proto",
+ ]
deps = [
"//base",
"//components/keyed_service/core",
@@ -24,10 +30,23 @@ static_library("prefetch") {
]
}
+proto_library("proto") {
+ sources = [
+ "proto/any.proto",
+ "proto/offline_pages.proto",
+ "proto/operation.proto",
+ "proto/status.proto",
+ "proto/timestamp.proto",
+ ]
+}
+
source_set("unit_tests") {
testonly = true
sources = [
+ "generate_page_bundle_request_unittest.cc",
"prefetch_request_fetcher_unittest.cc",
+ "prefetch_request_test_base.cc",
+ "prefetch_request_test_base.h",
"prefetch_service_impl_unittest.cc",
]

Powered by Google App Engine
This is Rietveld 408576698