Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: net/BUILD.gn

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude brotli_filter_unittest on ios - needs to read input data files Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/common/content_features.cc ('k') | net/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//build_overrides/v8.gni") 10 import("//build_overrides/v8.gni")
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 # ICU support. 444 # ICU support.
445 deps += [ 445 deps += [
446 "//base:i18n", 446 "//base:i18n",
447 "//third_party/icu", 447 "//third_party/icu",
448 ] 448 ]
449 sources += [ 449 sources += [
450 "base/filename_util_icu.cc", 450 "base/filename_util_icu.cc",
451 "base/net_string_util_icu.cc", 451 "base/net_string_util_icu.cc",
452 "base/net_util_icu.cc", 452 "base/net_util_icu.cc",
453 ] 453 ]
454
455 # Brotli support.
456 deps += [ "//third_party/brotli" ]
457 sources += [ "filter/brotli_filter.cc" ]
454 } 458 }
455 } 459 }
456 460
457 if (is_android) { 461 if (is_android) {
458 # Same as net, but with ICU, file, ftp, and websocket support stripped. 462 # Same as net, but with brotli encoding, ICU, file, ftp, and websocket
463 # support stripped.
459 component("net_small") { 464 component("net_small") {
460 sources = net_shared_sources 465 sources = net_shared_sources
461 466
462 # Add back some sources that were otherwise filtered out. 467 # Add back some sources that were otherwise filtered out.
463 set_sources_assignment_filter([]) 468 set_sources_assignment_filter([])
464 sources += net_shared_unfiltered_sources 469 sources += net_shared_unfiltered_sources
465 set_sources_assignment_filter(sources_assignment_filter) 470 set_sources_assignment_filter(sources_assignment_filter)
466 471
467 cflags = [] 472 cflags = []
468 defines = [] 473 defines = []
469 configs += net_shared_configs 474 configs += net_shared_configs
470 public_configs = [ ":net_config" ] 475 public_configs = [ ":net_config" ]
471 476
472 public_deps = net_shared_public_deps + 477 public_deps = net_shared_public_deps +
473 [ "//url:url_lib_use_icu_alternatives_on_android" ] 478 [ "//url:url_lib_use_icu_alternatives_on_android" ]
474 deps = net_shared_deps + [ ":net_jni_headers" ] 479 deps = net_shared_deps + [ ":net_jni_headers" ]
475 480
476 defines += [ 481 defines += [
477 "DISABLE_FILE_SUPPORT", 482 "DISABLE_FILE_SUPPORT",
478 "DISABLE_FTP_SUPPORT", 483 "DISABLE_FTP_SUPPORT",
479 "USE_ICU_ALTERNATIVES_ON_ANDROID=1", 484 "USE_ICU_ALTERNATIVES_ON_ANDROID=1",
480 ] 485 ]
481 486
482 # Use ICU alternative on Android. 487 # Use ICU alternative on Android.
483 sources += [ 488 sources += [
484 "base/net_string_util_icu_alternatives_android.cc", 489 "base/net_string_util_icu_alternatives_android.cc",
485 "base/net_string_util_icu_alternatives_android.h", 490 "base/net_string_util_icu_alternatives_android.h",
486 ] 491 ]
492
493 # Disable Brotli support.
494 sources += [ "filter/brotli_filter_disabled.cc" ]
487 } 495 }
488 } 496 }
489 497
490 grit("net_resources") { 498 grit("net_resources") {
491 source = "base/net_resources.grd" 499 source = "base/net_resources.grd"
492 use_qualified_include = true 500 use_qualified_include = true
493 outputs = [ 501 outputs = [
494 "grit/net_resources.h", 502 "grit/net_resources.h",
495 "net_resources.pak", 503 "net_resources.pak",
496 ] 504 ]
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 # ], 1621 # ],
1614 sources -= [ 1622 sources -= [
1615 # TODO(droger): The following tests are disabled because the 1623 # TODO(droger): The following tests are disabled because the
1616 # implementation is missing or incomplete. 1624 # implementation is missing or incomplete.
1617 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. 1625 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1618 "base/keygen_handler_unittest.cc", 1626 "base/keygen_handler_unittest.cc",
1619 "disk_cache/backend_unittest.cc", 1627 "disk_cache/backend_unittest.cc",
1620 "disk_cache/blockfile/block_files_unittest.cc", 1628 "disk_cache/blockfile/block_files_unittest.cc",
1621 1629
1622 # Need to read input data files. 1630 # Need to read input data files.
1631 "filter/brotli_filter_unittest.cc",
1623 "filter/gzip_filter_unittest.cc", 1632 "filter/gzip_filter_unittest.cc",
1624 "socket/ssl_server_socket_unittest.cc", 1633 "socket/ssl_server_socket_unittest.cc",
1625 "spdy/fuzzing/hpack_fuzz_util_test.cc", 1634 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1626 1635
1627 # Need TestServer. 1636 # Need TestServer.
1628 "cert_net/cert_net_fetcher_impl_unittest.cc", 1637 "cert_net/cert_net_fetcher_impl_unittest.cc",
1629 "proxy/proxy_script_fetcher_impl_unittest.cc", 1638 "proxy/proxy_script_fetcher_impl_unittest.cc",
1630 "socket/ssl_client_socket_unittest.cc", 1639 "socket/ssl_client_socket_unittest.cc",
1631 "url_request/url_fetcher_impl_unittest.cc", 1640 "url_request/url_fetcher_impl_unittest.cc",
1632 "url_request/url_request_context_builder_unittest.cc", 1641 "url_request/url_request_context_builder_unittest.cc",
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 if (enable_websockets) { 1719 if (enable_websockets) {
1711 sources += [ "websockets/websocket_frame_perftest.cc" ] 1720 sources += [ "websockets/websocket_frame_perftest.cc" ]
1712 } 1721 }
1713 1722
1714 if (use_v8_in_net) { 1723 if (use_v8_in_net) {
1715 deps += [ ":net_with_v8" ] 1724 deps += [ ":net_with_v8" ]
1716 } else { 1725 } else {
1717 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1726 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1718 } 1727 }
1719 } 1728 }
OLDNEW
« no previous file with comments | « content/public/common/content_features.cc ('k') | net/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698