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

Side by Side Diff: components/offline_items_collection/core/BUILD.gn

Issue 2754023002: Add a throttle wrapper to OfflineContentProvider (Closed)
Patch Set: Rebased Created 3 years, 9 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
« no previous file with comments | « no previous file | components/offline_items_collection/core/throttled_offline_content_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni") 7 import("//build/config/android/rules.gni")
8 } 8 }
9 9
10 static_library("core") { 10 static_library("core") {
11 sources = [ 11 sources = [
12 "offline_content_aggregator.cc", 12 "offline_content_aggregator.cc",
13 "offline_content_aggregator.h", 13 "offline_content_aggregator.h",
14 "offline_content_provider.h", 14 "offline_content_provider.h",
15 "offline_item.cc", 15 "offline_item.cc",
16 "offline_item.h", 16 "offline_item.h",
17 "offline_item_filter.h", 17 "offline_item_filter.h",
18 "offline_item_state.h", 18 "offline_item_state.h",
19 "throttled_offline_content_provider.cc",
20 "throttled_offline_content_provider.h",
19 ] 21 ]
20 22
21 public_deps = [ 23 public_deps = [
22 "//base", 24 "//base",
23 "//components/keyed_service/core", 25 "//components/keyed_service/core",
24 "//url", 26 "//url",
25 ] 27 ]
26 28
27 deps = [] 29 deps = []
28 30
29 if (is_android) { 31 if (is_android) {
30 sources += [ 32 sources += [
31 "android/offline_content_aggregator_bridge.cc", 33 "android/offline_content_aggregator_bridge.cc",
32 "android/offline_content_aggregator_bridge.h", 34 "android/offline_content_aggregator_bridge.h",
33 "android/offline_item_bridge.cc", 35 "android/offline_item_bridge.cc",
34 "android/offline_item_bridge.h", 36 "android/offline_item_bridge.h",
35 ] 37 ]
36 38
37 deps += [ ":jni_headers" ] 39 deps += [ ":jni_headers" ]
38 } 40 }
39 } 41 }
40 42
41 source_set("unit_tests") { 43 source_set("unit_tests") {
42 testonly = true 44 testonly = true
43 45
44 sources = [ 46 sources = [
45 "offline_content_aggregator_unittest.cc", 47 "offline_content_aggregator_unittest.cc",
48 "throttled_offline_content_provider_unittest.cc",
46 ] 49 ]
47 50
48 deps = [ 51 deps = [
49 ":core", 52 ":core",
50 "//base/test:test_support", 53 "//base/test:test_support",
51 "//components/offline_items_collection/core/test_support", 54 "//components/offline_items_collection/core/test_support",
52 ] 55 ]
53 } 56 }
54 57
55 if (is_android) { 58 if (is_android) {
(...skipping 27 matching lines...) Expand all
83 86
84 java_cpp_enum("jni_enums") { 87 java_cpp_enum("jni_enums") {
85 visibility = [ ":*" ] 88 visibility = [ ":*" ]
86 89
87 sources = [ 90 sources = [
88 "offline_item_filter.h", 91 "offline_item_filter.h",
89 "offline_item_state.h", 92 "offline_item_state.h",
90 ] 93 ]
91 } 94 }
92 } 95 }
OLDNEW
« no previous file with comments | « no previous file | components/offline_items_collection/core/throttled_offline_content_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698