| OLD | NEW |
| 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 import("//third_party/protobuf/proto_library.gni") |
| 9 | 9 |
| 10 static_library("prefetch") { | 10 static_library("prefetch") { |
| 11 sources = [ | 11 sources = [ |
| 12 "generate_page_bundle_request.cc", | 12 "generate_page_bundle_request.cc", |
| 13 "generate_page_bundle_request.h", | 13 "generate_page_bundle_request.h", |
| 14 "get_operation_request.cc", |
| 15 "get_operation_request.h", |
| 14 "prefetch_dispatcher.h", | 16 "prefetch_dispatcher.h", |
| 15 "prefetch_dispatcher_impl.cc", | 17 "prefetch_dispatcher_impl.cc", |
| 16 "prefetch_dispatcher_impl.h", | 18 "prefetch_dispatcher_impl.h", |
| 17 "prefetch_item.cc", | 19 "prefetch_item.cc", |
| 18 "prefetch_item.h", | 20 "prefetch_item.h", |
| 21 "prefetch_proto_utils.cc", |
| 22 "prefetch_proto_utils.h", |
| 19 "prefetch_request_fetcher.cc", | 23 "prefetch_request_fetcher.cc", |
| 20 "prefetch_request_fetcher.h", | 24 "prefetch_request_fetcher.h", |
| 21 "prefetch_service.h", | 25 "prefetch_service.h", |
| 22 "prefetch_service_impl.cc", | 26 "prefetch_service_impl.cc", |
| 23 "prefetch_service_impl.h", | 27 "prefetch_service_impl.h", |
| 24 "prefetch_types.cc", | 28 "prefetch_types.cc", |
| 25 "prefetch_types.h", | 29 "prefetch_types.h", |
| 26 "prefetch_utils.cc", | |
| 27 "prefetch_utils.h", | |
| 28 ] | 30 ] |
| 29 | 31 |
| 30 public_deps = [ | 32 public_deps = [ |
| 31 ":proto", | 33 ":proto", |
| 32 ] | 34 ] |
| 33 deps = [ | 35 deps = [ |
| 34 "//base", | 36 "//base", |
| 35 "//components/keyed_service/core", | 37 "//components/keyed_service/core", |
| 36 "//components/offline_pages/core", | 38 "//components/offline_pages/core", |
| 37 "//net:net", | 39 "//net:net", |
| 38 "//url", | 40 "//url", |
| 39 ] | 41 ] |
| 40 } | 42 } |
| 41 | 43 |
| 42 proto_library("proto") { | 44 proto_library("proto") { |
| 43 sources = [ | 45 sources = [ |
| 44 "proto/any.proto", | 46 "proto/any.proto", |
| 45 "proto/offline_pages.proto", | 47 "proto/offline_pages.proto", |
| 46 "proto/operation.proto", | 48 "proto/operation.proto", |
| 47 "proto/status.proto", | 49 "proto/status.proto", |
| 48 "proto/timestamp.proto", | 50 "proto/timestamp.proto", |
| 49 ] | 51 ] |
| 50 } | 52 } |
| 51 | 53 |
| 52 source_set("unit_tests") { | 54 source_set("unit_tests") { |
| 53 testonly = true | 55 testonly = true |
| 54 sources = [ | 56 sources = [ |
| 55 "generate_page_bundle_request_unittest.cc", | 57 "generate_page_bundle_request_unittest.cc", |
| 58 "get_operation_request_unittest.cc", |
| 56 "prefetch_dispatcher_impl_unittest.cc", | 59 "prefetch_dispatcher_impl_unittest.cc", |
| 57 "prefetch_item_unittest.cc", | 60 "prefetch_item_unittest.cc", |
| 58 "prefetch_request_fetcher_unittest.cc", | 61 "prefetch_request_fetcher_unittest.cc", |
| 62 "prefetch_request_operation_response_unittest.cc", |
| 59 "prefetch_request_test_base.cc", | 63 "prefetch_request_test_base.cc", |
| 60 "prefetch_request_test_base.h", | 64 "prefetch_request_test_base.h", |
| 61 ] | 65 ] |
| 62 | 66 |
| 63 deps = [ | 67 deps = [ |
| 64 ":prefetch", | 68 ":prefetch", |
| 65 "//components/offline_pages/core", | 69 "//components/offline_pages/core", |
| 66 "//net:test_support", | 70 "//net:test_support", |
| 67 "//testing/gmock", | 71 "//testing/gmock", |
| 68 "//testing/gtest", | 72 "//testing/gtest", |
| 69 "//url", | 73 "//url", |
| 70 ] | 74 ] |
| 71 } | 75 } |
| OLD | NEW |