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

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

Issue 2873383004: [Offline Prefetch] Send GeneratePageBundleRequest to the server (Closed)
Patch Set: Address more feedback 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
« no previous file with comments | « no previous file | components/offline_pages/core/prefetch/generate_page_bundle_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..98044bbc3a1c8ebfeabd653dd6bb71da349721d8 100644
--- a/components/offline_pages/core/prefetch/BUILD.gn
+++ b/components/offline_pages/core/prefetch/BUILD.gn
@@ -5,16 +5,26 @@
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",
"prefetch_service_impl.cc",
"prefetch_service_impl.h",
+ "prefetch_types.cc",
+ "prefetch_types.h",
+ "prefetch_utils.cc",
+ "prefetch_utils.h",
]
+ public_deps = [
+ ":proto",
+ ]
deps = [
"//base",
"//components/keyed_service/core",
@@ -24,10 +34,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",
]
« no previous file with comments | « no previous file | components/offline_pages/core/prefetch/generate_page_bundle_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698