| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 | 8 |
| 9 # GYP: //components/offline_pages.gypi:offline_pages | 9 # GYP: //components/offline_pages.gypi:offline_pages |
| 10 static_library("offline_pages") { | 10 static_library("offline_pages") { |
| 11 sources = [ | 11 sources = [ |
| 12 "client_policy_controller.cc", | 12 "client_policy_controller.cc", |
| 13 "client_policy_controller.h", | 13 "client_policy_controller.h", |
| 14 "offline_page_archiver.h", | 14 "offline_page_archiver.h", |
| 15 "offline_page_client_policy.h", | 15 "offline_page_client_policy.h", |
| 16 "offline_page_item.cc", | 16 "offline_page_item.cc", |
| 17 "offline_page_item.h", | 17 "offline_page_item.h", |
| 18 "offline_page_metadata_store.cc", | 18 "offline_page_metadata_store.cc", |
| 19 "offline_page_metadata_store.h", | 19 "offline_page_metadata_store.h", |
| 20 "offline_page_metadata_store_impl.cc", | 20 "offline_page_metadata_store_impl.cc", |
| 21 "offline_page_metadata_store_impl.h", | 21 "offline_page_metadata_store_impl.h", |
| 22 "offline_page_metadata_store_sql.cc", | 22 "offline_page_metadata_store_sql.cc", |
| 23 "offline_page_metadata_store_sql.h", | 23 "offline_page_metadata_store_sql.h", |
| 24 "offline_page_model.cc", | 24 "offline_page_model.cc", |
| 25 "offline_page_model.h", | 25 "offline_page_model.h", |
| 26 "offline_page_storage_manager.cc", |
| 27 "offline_page_storage_manager.h", |
| 26 "snapshot_controller.cc", | 28 "snapshot_controller.cc", |
| 27 "snapshot_controller.h", | 29 "snapshot_controller.h", |
| 28 ] | 30 ] |
| 29 | 31 |
| 30 deps = [ | 32 deps = [ |
| 31 ":switches", | 33 ":switches", |
| 32 "//base", | 34 "//base", |
| 33 "//components/bookmarks/browser", | 35 "//components/bookmarks/browser", |
| 34 "//components/keyed_service/core", | 36 "//components/keyed_service/core", |
| 35 "//components/leveldb_proto", | 37 "//components/leveldb_proto", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 "//components/version_info", | 72 "//components/version_info", |
| 71 ] | 73 ] |
| 72 } | 74 } |
| 73 | 75 |
| 74 source_set("unit_tests") { | 76 source_set("unit_tests") { |
| 75 testonly = true | 77 testonly = true |
| 76 sources = [ | 78 sources = [ |
| 77 "client_policy_controller_unittest.cc", | 79 "client_policy_controller_unittest.cc", |
| 78 "offline_page_metadata_store_impl_unittest.cc", | 80 "offline_page_metadata_store_impl_unittest.cc", |
| 79 "offline_page_model_unittest.cc", | 81 "offline_page_model_unittest.cc", |
| 82 "offline_page_storage_manager_unittest.cc", |
| 80 "snapshot_controller_unittest.cc", | 83 "snapshot_controller_unittest.cc", |
| 81 ] | 84 ] |
| 82 | 85 |
| 83 deps = [ | 86 deps = [ |
| 84 ":offline_pages", | 87 ":offline_pages", |
| 85 ":switches", | 88 ":switches", |
| 86 ":test_support", | 89 ":test_support", |
| 87 "//base", | 90 "//base", |
| 88 "//base/test:test_support", | 91 "//base/test:test_support", |
| 89 "//components/leveldb_proto", | 92 "//components/leveldb_proto", |
| 90 "//components/offline_pages/proto:offline_pages_proto", | 93 "//components/offline_pages/proto:offline_pages_proto", |
| 91 "//testing/gtest", | 94 "//testing/gtest", |
| 92 "//url", | 95 "//url", |
| 93 ] | 96 ] |
| 94 } | 97 } |
| 95 | 98 |
| 96 if (is_android) { | 99 if (is_android) { |
| 97 java_cpp_enum("offline_page_model_enums_java") { | 100 java_cpp_enum("offline_page_model_enums_java") { |
| 98 sources = [ | 101 sources = [ |
| 99 "offline_page_model.h", | 102 "offline_page_model.h", |
| 100 ] | 103 ] |
| 101 } | 104 } |
| 102 } | 105 } |
| OLD | NEW |