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

Side by Side Diff: components/offline_pages/core/prefetch/BUILD.gn

Issue 2873383004: [Offline Prefetch] Send GeneratePageBundleRequest to the server (Closed)
Patch Set: Address feedback + fix trybots 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 unified diff | Download patch
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 if (is_android) { 5 if (is_android) {
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 } 7 }
8 import("//third_party/protobuf/proto_library.gni")
8 9
9 static_library("prefetch") { 10 static_library("prefetch") {
10 sources = [ 11 sources = [
12 "generate_page_bundle_request.cc",
13 "generate_page_bundle_request.h",
11 "prefetch_request_fetcher.cc", 14 "prefetch_request_fetcher.cc",
12 "prefetch_request_fetcher.h", 15 "prefetch_request_fetcher.h",
13 "prefetch_service.h", 16 "prefetch_service.h",
14 "prefetch_service_impl.cc", 17 "prefetch_service_impl.cc",
15 "prefetch_service_impl.h", 18 "prefetch_service_impl.h",
19 "prefetch_types.cc",
20 "prefetch_types.h",
16 ] 21 ]
17 22
23 public_deps = [
24 ":proto",
25 ]
18 deps = [ 26 deps = [
19 "//base", 27 "//base",
20 "//components/keyed_service/core", 28 "//components/keyed_service/core",
21 "//components/offline_pages/core", 29 "//components/offline_pages/core",
22 "//net:net", 30 "//net:net",
23 "//url", 31 "//url",
24 ] 32 ]
25 } 33 }
26 34
35 proto_library("proto") {
36 sources = [
37 "proto/any.proto",
38 "proto/offline_pages.proto",
39 "proto/operation.proto",
40 "proto/status.proto",
41 "proto/timestamp.proto",
42 ]
43 }
44
27 source_set("unit_tests") { 45 source_set("unit_tests") {
28 testonly = true 46 testonly = true
29 sources = [ 47 sources = [
48 "generate_page_bundle_request_unittest.cc",
30 "prefetch_request_fetcher_unittest.cc", 49 "prefetch_request_fetcher_unittest.cc",
50 "prefetch_request_test_base.cc",
51 "prefetch_request_test_base.h",
31 "prefetch_service_impl_unittest.cc", 52 "prefetch_service_impl_unittest.cc",
32 ] 53 ]
33 54
34 deps = [ 55 deps = [
35 ":prefetch", 56 ":prefetch",
36 "//components/offline_pages/core", 57 "//components/offline_pages/core",
37 "//net:test_support", 58 "//net:test_support",
38 "//testing/gmock", 59 "//testing/gmock",
39 "//testing/gtest", 60 "//testing/gtest",
40 "//url", 61 "//url",
41 ] 62 ]
42 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698