| OLD | NEW | 
|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") | 
| 6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") | 
| 7 | 7 | 
| 8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", | 
| 9                           [ rebase_path("../chrome_renderer.gypi") ], | 9                           [ rebase_path("../chrome_renderer.gypi") ], | 
| 10                           "scope", | 10                           "scope", | 
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 79         rebase_path(gypi_values.chrome_renderer_plugin_sources, ".", "..") | 79         rebase_path(gypi_values.chrome_renderer_plugin_sources, ".", "..") | 
| 80     deps += [ | 80     deps += [ | 
| 81       "//components/pdf/renderer", | 81       "//components/pdf/renderer", | 
| 82       "//ppapi/host", | 82       "//ppapi/host", | 
| 83       "//ppapi/proxy", | 83       "//ppapi/proxy", | 
| 84       "//ppapi/proxy:ipc", | 84       "//ppapi/proxy:ipc", | 
| 85       "//ppapi/shared_impl", | 85       "//ppapi/shared_impl", | 
| 86     ] | 86     ] | 
| 87   } | 87   } | 
| 88 | 88 | 
| 89   if (safe_browsing_mode == 1) { | 89   if (safe_browsing_mode != 0) { | 
| 90     sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, | 90     sources += rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sourc
     es, | 
| 91                            ".", | 91                            ".", | 
| 92                            "..") | 92                            "..") | 
| 93     sources += | 93     if (safe_browsing_mode == 1) { | 
| 94         rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sources, | 94       sources += | 
| 95                     ".", | 95           rebase_path(gypi_values.chrome_renderer_safe_browsing_sources, | 
| 96                     "..") | 96                       ".", | 
| 97     defines += [ "FULL_SAFE_BROWSING" ] | 97                       "..") | 
| 98     deps += [ | 98       deps += [ | 
| 99       "//chrome/common/safe_browsing:proto", | 99         "//chrome/common/safe_browsing:proto", | 
| 100       "//third_party/smhasher:murmurhash3", | 100         "//third_party/smhasher:murmurhash3", | 
| 101     ] | 101       ] | 
| 102   } | 102     } | 
| 103   if (safe_browsing_mode == 2) { |  | 
| 104     sources += |  | 
| 105         rebase_path(gypi_values.chrome_renderer_basic_safe_browsing_sources, |  | 
| 106                     ".", |  | 
| 107                     "..") |  | 
| 108     defines += [ "MOBILE_SAFE_BROWSING" ] |  | 
| 109   } | 103   } | 
| 110 | 104 | 
| 111   if (enable_extensions) { | 105   if (enable_extensions) { | 
| 112     sources += | 106     sources += | 
| 113         rebase_path(gypi_values.chrome_renderer_extensions_sources, ".", "..") | 107         rebase_path(gypi_values.chrome_renderer_extensions_sources, ".", "..") | 
| 114     deps += [ | 108     deps += [ | 
| 115       # TODO(hclam): See crbug.com/298380 for details. | 109       # TODO(hclam): See crbug.com/298380 for details. | 
| 116       # We should isolate the APIs needed by the renderer. | 110       # We should isolate the APIs needed by the renderer. | 
| 117       "//chrome/common/extensions/api", | 111       "//chrome/common/extensions/api", | 
| 118       "//extensions:extensions_resources", | 112       "//extensions:extensions_resources", | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 198     deps += [ "//chrome/service" ] | 192     deps += [ "//chrome/service" ] | 
| 199   } | 193   } | 
| 200 | 194 | 
| 201   if (enable_webrtc) { | 195   if (enable_webrtc) { | 
| 202     sources += [ | 196     sources += [ | 
| 203       "media/mock_webrtc_logging_message_filter.cc", | 197       "media/mock_webrtc_logging_message_filter.cc", | 
| 204       "media/mock_webrtc_logging_message_filter.h", | 198       "media/mock_webrtc_logging_message_filter.h", | 
| 205     ] | 199     ] | 
| 206   } | 200   } | 
| 207 } | 201 } | 
| OLD | NEW | 
|---|