1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 import("//build/config/android/config.gni")
9 config("implementation") {
10 defines = [ "SESSIONS_IMPLEMENTATION" ]
14 # GYP version: components/sessions.gypi:sessions_content
15 component("sessions") {
17 "content/content_live_tab.cc",
18 "content/content_live_tab.h",
19 "content/content_platform_specific_tab_data.cc",
20 "content/content_platform_specific_tab_data.h",
21 "content/content_serialized_navigation_builder.cc",
22 "content/content_serialized_navigation_builder.h",
23 "content/content_serialized_navigation_driver.cc",
24 "content/content_serialized_navigation_driver.h",
27 configs += [ ":implementation" ]
31 "//content/public/browser",
36 "//base/third_party/dynamic_annotations",
42 source_set("sessions") {
44 "ios/ios_serialized_navigation_builder.cc",
45 "ios/ios_serialized_navigation_builder.h",
46 "ios/ios_serialized_navigation_driver.cc",
47 "ios/ios_serialized_navigation_driver.h",
56 # '../ios/web/ios_web.gyp:ios_web', TODO(GYP) iOS.
61 # Sources shared between the content and iOS implementations.
62 source_set("shared") {
66 "base_session_service.cc",
67 "base_session_service.h",
68 "base_session_service_commands.cc",
69 "base_session_service_commands.h",
70 "base_session_service_delegate.h",
73 "core/serialized_navigation_driver.h",
74 "core/session_constants.cc",
75 "core/session_constants.h",
76 "core/tab_restore_service.cc",
77 "core/tab_restore_service.h",
78 "core/tab_restore_service_client.cc",
79 "core/tab_restore_service_client.h",
80 "core/tab_restore_service_delegate.h",
81 "core/tab_restore_service_helper.cc",
82 "core/tab_restore_service_helper.h",
83 "core/tab_restore_service_observer.h",
84 "serialized_navigation_entry.cc",
85 "serialized_navigation_entry.h",
92 "session_service_commands.cc",
93 "session_service_commands.h",
100 "core/in_memory_tab_restore_service.cc",
101 "core/in_memory_tab_restore_service.h",
105 "core/persistent_tab_restore_service.cc",
106 "core/persistent_tab_restore_service.h",
110 configs += [ ":implementation" ]
113 "//components/keyed_service/core",
127 source_set("test_support") {
130 "serialized_navigation_entry_test_helper.cc",
131 "serialized_navigation_entry_test_helper.h",
143 if (!is_android && !is_ios) {
145 "base_session_service_test_helper.cc",
146 "base_session_service_test_helper.h",
151 if (!is_ios && !is_android) {
152 source_set("unit_tests") {
155 "content/content_serialized_navigation_builder_unittest.cc",
156 "content/content_serialized_navigation_driver_unittest.cc",
157 "ios/ios_serialized_navigation_builder_unittest.cc",
158 "ios/ios_serialized_navigation_driver_unittest.cc",
159 "serialized_navigation_entry_unittest.cc",
160 "session_backend_unittest.cc",
161 "session_types_unittest.cc",
166 "//base/test:test_support",