BUILD.gn 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 2020 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. import("//extensions/buildflags/buildflags.gni")
  5. import("//mojo/public/tools/bindings/mojom.gni")
  6. static_library("common") {
  7. sources = [
  8. "no_state_prefetch_final_status.cc",
  9. "no_state_prefetch_final_status.h",
  10. "no_state_prefetch_utils.cc",
  11. "no_state_prefetch_utils.h",
  12. "prerender_origin.cc",
  13. "prerender_origin.h",
  14. "prerender_url_loader_throttle.cc",
  15. "prerender_url_loader_throttle.h",
  16. ]
  17. deps = [
  18. ":mojo_bindings",
  19. "//content/public/common:common",
  20. "//extensions/buildflags",
  21. "//ipc",
  22. "//ipc:message_support",
  23. "//ipc:param_traits",
  24. "//services/network/public/mojom",
  25. "//ui/gfx",
  26. "//url",
  27. ]
  28. if (enable_extensions) {
  29. deps += [ "//extensions/common:common_constants" ]
  30. }
  31. }
  32. mojom("mojo_bindings") {
  33. sources = [
  34. "prerender_canceler.mojom",
  35. "render_frame_prerender_messages.mojom",
  36. ]
  37. deps = [ "//url/mojom:url_mojom_gurl" ]
  38. }