• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5if (is_android) {
6  import("//build/config/android/rules.gni")
7}
8
9static_library("navigation_interception") {
10  sources = [
11    "intercept_navigation_resource_throttle.cc",
12    "intercept_navigation_resource_throttle.h",
13    "navigation_params.h",
14    "navigation_params.cc",
15  ]
16
17  deps = [
18    "//base",
19    "//content/public/browser",
20    "//content/public/common",
21    "//net",
22    "//ui/base",
23  ]
24
25  if (is_android) {
26    sources += [
27      "component_jni_registrar.cc",
28      "component_jni_registrar.h",
29      "intercept_navigation_delegate.cc",
30      "intercept_navigation_delegate.h",
31      "navigation_params_android.h",
32      "navigation_params_android.cc",
33    ]
34    deps += [ ":jni_headers" ]
35  }
36}
37
38if (is_android) {
39
40  # TODO(GYP): navigation_interception_java target
41
42  generate_jni("jni_headers") {
43    sources = [
44      "android/java/src/org/chromium/components/navigation_interception/InterceptNavigationDelegate.java",
45      "android/java/src/org/chromium/components/navigation_interception/NavigationParams.java",
46    ]
47    jni_package = "navigation_interception"
48  }
49}
50