| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 source_set("sessions") { | 5 source_set("sessions") { |
| 6 configs += [ "//build/config/compiler:enable_arc" ] | 6 configs += [ "//build/config/compiler:enable_arc" ] |
| 7 sources = [ | 7 sources = [ |
| 8 "ios_chrome_session_tab_helper.h", | 8 "ios_chrome_session_tab_helper.h", |
| 9 "ios_chrome_session_tab_helper.mm", | 9 "ios_chrome_session_tab_helper.mm", |
| 10 "ios_chrome_tab_restore_service_client.h", | 10 "ios_chrome_tab_restore_service_client.h", |
| 11 "ios_chrome_tab_restore_service_client.mm", | 11 "ios_chrome_tab_restore_service_client.mm", |
| 12 "ios_chrome_tab_restore_service_factory.cc", | 12 "ios_chrome_tab_restore_service_factory.cc", |
| 13 "ios_chrome_tab_restore_service_factory.h", | 13 "ios_chrome_tab_restore_service_factory.h", |
| 14 "tab_restore_service_delegate_impl_ios.h", |
| 15 "tab_restore_service_delegate_impl_ios.mm", |
| 16 "tab_restore_service_delegate_impl_ios_factory.h", |
| 17 "tab_restore_service_delegate_impl_ios_factory.mm", |
| 14 ] | 18 ] |
| 15 deps = [ | 19 deps = [ |
| 16 ":serialisation", | 20 ":serialisation", |
| 17 "//base", | 21 "//base", |
| 22 "//components/keyed_service/core", |
| 18 "//components/keyed_service/ios", | 23 "//components/keyed_service/ios", |
| 19 "//components/sessions", | 24 "//components/sessions", |
| 20 "//ios/chrome/browser", | 25 "//ios/chrome/browser", |
| 21 "//ios/chrome/browser/browser_state", | 26 "//ios/chrome/browser/browser_state", |
| 22 "//ios/chrome/browser/tabs", | 27 "//ios/chrome/browser/tabs", |
| 28 "//ios/chrome/browser/web_state_list", |
| 23 "//ios/public/provider/chrome/browser", | 29 "//ios/public/provider/chrome/browser", |
| 24 "//ios/web", | 30 "//ios/web", |
| 31 "//net", |
| 25 "//url", | 32 "//url", |
| 26 ] | 33 ] |
| 27 public_deps = [ | 34 libs = [ "UIKit.framework" ] |
| 28 ":sessions_non_arc", | |
| 29 ] | |
| 30 allow_circular_includes_from = [ ":sessions_non_arc" ] | |
| 31 } | 35 } |
| 32 | 36 |
| 33 source_set("serialisation") { | 37 source_set("serialisation") { |
| 34 sources = [ | 38 sources = [ |
| 35 "NSCoder+Compatibility.h", | 39 "NSCoder+Compatibility.h", |
| 36 "NSCoder+Compatibility.mm", | 40 "NSCoder+Compatibility.mm", |
| 37 "session_ios.h", | 41 "session_ios.h", |
| 38 "session_ios.mm", | 42 "session_ios.mm", |
| 39 "session_service_ios.h", | 43 "session_service_ios.h", |
| 40 "session_service_ios.mm", | 44 "session_service_ios.mm", |
| 41 "session_util.h", | 45 "session_util.h", |
| 42 "session_util.mm", | 46 "session_util.mm", |
| 43 "session_window_ios.h", | 47 "session_window_ios.h", |
| 44 "session_window_ios.mm", | 48 "session_window_ios.mm", |
| 45 ] | 49 ] |
| 46 deps = [ | 50 deps = [ |
| 47 "//base", | 51 "//base", |
| 48 "//ios/web", | 52 "//ios/web", |
| 49 ] | 53 ] |
| 50 configs += [ "//build/config/compiler:enable_arc" ] | 54 configs += [ "//build/config/compiler:enable_arc" ] |
| 51 } | 55 } |
| 52 | 56 |
| 53 source_set("sessions_non_arc") { | |
| 54 visibility = [ ":sessions" ] | |
| 55 sources = [ | |
| 56 "tab_restore_service_delegate_impl_ios.h", | |
| 57 "tab_restore_service_delegate_impl_ios.mm", | |
| 58 "tab_restore_service_delegate_impl_ios_factory.h", | |
| 59 "tab_restore_service_delegate_impl_ios_factory.mm", | |
| 60 ] | |
| 61 deps = [ | |
| 62 "//base", | |
| 63 "//components/keyed_service/core", | |
| 64 "//components/keyed_service/ios", | |
| 65 "//components/sessions", | |
| 66 "//ios/chrome/browser/browser_state", | |
| 67 "//ios/chrome/browser/tabs", | |
| 68 "//ios/chrome/browser/web_state_list", | |
| 69 "//ios/web", | |
| 70 "//net", | |
| 71 ] | |
| 72 libs = [ "UIKit.framework" ] | |
| 73 } | |
| 74 | |
| 75 source_set("test_support") { | 57 source_set("test_support") { |
| 76 configs += [ "//build/config/compiler:enable_arc" ] | 58 configs += [ "//build/config/compiler:enable_arc" ] |
| 77 testonly = true | 59 testonly = true |
| 78 sources = [ | 60 sources = [ |
| 79 "test_session_service.h", | 61 "test_session_service.h", |
| 80 "test_session_service.mm", | 62 "test_session_service.mm", |
| 81 ] | 63 ] |
| 82 deps = [ | 64 deps = [ |
| 83 ":serialisation", | 65 ":serialisation", |
| 84 "//base", | 66 "//base", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 113 testonly = true | 95 testonly = true |
| 114 sources = [ | 96 sources = [ |
| 115 "//ios/chrome/test/data/sessions/corrupted.plist", | 97 "//ios/chrome/test/data/sessions/corrupted.plist", |
| 116 "//ios/chrome/test/data/sessions/session_m57.plist", | 98 "//ios/chrome/test/data/sessions/session_m57.plist", |
| 117 "//ios/chrome/test/data/sessions/session_m58.plist", | 99 "//ios/chrome/test/data/sessions/session_m58.plist", |
| 118 ] | 100 ] |
| 119 outputs = [ | 101 outputs = [ |
| 120 "{{bundle_resources_dir}}/ios/chrome/test/data/sessions/{{source_file_part}}
", | 102 "{{bundle_resources_dir}}/ios/chrome/test/data/sessions/{{source_file_part}}
", |
| 121 ] | 103 ] |
| 122 } | 104 } |
| OLD | NEW |