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

Unified Diff: components/offline_pages/BUILD.gn

Issue 1160283003: [Offline] Creates metadata store interface for offline pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offline-pages-1
Patch Set: Adding BUILD.gn updates Created 5 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/BUILD.gn
diff --git a/components/offline_pages/BUILD.gn b/components/offline_pages/BUILD.gn
index 17c32e99222c0ae2eaad88a30f5c75c703febb18..f8f97eedb217594c5bb02d61226c8d69a97f49d5 100644
--- a/components/offline_pages/BUILD.gn
+++ b/components/offline_pages/BUILD.gn
@@ -2,19 +2,46 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# GYP: //components/offline_pages.gypi:offline_pages'
+import("//third_party/protobuf/proto_library.gni")
+
+# GYP: //components/offline_pages.gypi:offline_pages
static_library("offline_pages") {
sources = [
"offline_page_item.cc",
"offline_page_item.h",
+ "offline_page_metadata_store.cc",
+ "offline_page_metadata_store.h",
+ "offline_page_metadata_store_impl.cc",
+ "offline_page_metadata_store_impl.h",
"offline_page_model.cc",
"offline_page_model.h",
]
deps = [
+ ":proto",
"//base",
"//components/keyed_service/core",
"//net",
+ "//third_party/leveldatabase",
+ "//third_party/protobuf:protobuf_lite",
"//url",
]
}
+
+proto_library("proto") {
+ sources = [
+ "proto/offline_pages.proto",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "offline_page_metadata_store_impl_unittest.cc",
+ ]
+
+ deps = [
+ ":offline_pages",
+ "//testing/gtest",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698