1 # Copyright 2013 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.
7 # Core sources shared by sessions_content and sessions_ios. These can't
8 # be a separate shared library since one symbol is implemented higher up in
9 # the sessions_content/ios layer.
10 'sessions_core_sources': [
11 'sessions/base_session_service.cc',
12 'sessions/base_session_service.h',
13 'sessions/base_session_service_commands.cc',
14 'sessions/base_session_service_commands.h',
15 'sessions/base_session_service_delegate.h',
16 'sessions/core/live_tab.h',
17 'sessions/core/persistent_tab_restore_service.cc',
18 'sessions/core/persistent_tab_restore_service.h',
19 'sessions/core/serialized_navigation_driver.h',
20 'sessions/core/session_constants.cc',
21 'sessions/core/session_constants.h',
22 'sessions/core/tab_restore_service.cc',
23 'sessions/core/tab_restore_service.h',
24 'sessions/core/tab_restore_service_client.cc',
25 'sessions/core/tab_restore_service_client.h',
26 'sessions/core/tab_restore_service_helper.cc',
27 'sessions/core/tab_restore_service_helper.h',
28 'sessions/core/tab_restore_service_delegate.h',
29 'sessions/core/tab_restore_service_observer.h',
30 'sessions/serialized_navigation_entry.cc',
31 'sessions/serialized_navigation_entry.h',
32 'sessions/session_backend.cc',
33 'sessions/session_backend.h',
34 'sessions/session_command.cc',
35 'sessions/session_command.h',
36 'sessions/session_id.cc',
37 'sessions/session_id.h',
38 'sessions/session_service_commands.cc',
39 'sessions/session_service_commands.h',
40 'sessions/session_types.cc',
41 'sessions/session_types.h',
46 # GN version: //components/sessions:test_support
47 'target_name': 'sessions_test_support',
48 'type': 'static_library',
50 '../skia/skia.gyp:skia',
51 '../sync/sync.gyp:sync',
52 '../testing/gtest.gyp:gtest',
58 # Note: sources list duplicated in GN build.
59 'sessions/serialized_navigation_entry_test_helper.cc',
60 'sessions/serialized_navigation_entry_test_helper.h',
63 ['OS!="ios" and OS!="android"', {
65 'sessions/base_session_service_test_helper.cc',
66 'sessions/base_session_service_test_helper.h',
73 # Platform-specific targets.
78 # GN version: //components/sessions
79 'target_name': 'sessions_content',
80 'type': '<(component)',
82 '../base/base.gyp:base',
83 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
84 '../content/content.gyp:content_browser',
85 '../skia/skia.gyp:skia',
86 '../sync/sync.gyp:sync',
87 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
88 '../ui/base/ui_base.gyp:ui_base',
89 '../ui/gfx/gfx.gyp:gfx_geometry',
90 '../url/url.gyp:url_lib',
97 'SESSIONS_IMPLEMENTATION',
100 # Note: sources list duplicated in GN build.
101 '<@(sessions_core_sources)',
103 'sessions/content/content_live_tab.cc',
104 'sessions/content/content_live_tab.h',
105 'sessions/content/content_serialized_navigation_builder.cc',
106 'sessions/content/content_serialized_navigation_builder.h',
107 'sessions/content/content_serialized_navigation_driver.cc',
108 'sessions/content/content_serialized_navigation_driver.h',
109 'sessions/content/content_tab_client_data.cc',
110 'sessions/content/content_tab_client_data.h',
115 'sessions/core/in_memory_tab_restore_service.cc',
116 'sessions/core/in_memory_tab_restore_service.h',
119 'sessions/core/persistent_tab_restore_service.cc',
128 'target_name': 'sessions_ios',
129 'type': 'static_library',
131 '../base/base.gyp:base',
132 '../ios/web/ios_web.gyp:ios_web',
133 '../sync/sync.gyp:sync',
134 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
135 '../ui/base/ui_base.gyp:ui_base',
136 '../ui/gfx/gfx.gyp:gfx_geometry',
137 '../url/url.gyp:url_lib',
138 'keyed_service_core',
144 'SESSIONS_IMPLEMENTATION',
147 '<@(sessions_core_sources)',
149 'sessions/ios/ios_serialized_navigation_builder.cc',
150 'sessions/ios/ios_serialized_navigation_builder.h',
151 'sessions/ios/ios_serialized_navigation_driver.cc',
152 'sessions/ios/ios_serialized_navigation_driver.h',