AU: Expose the server's HTTP response code in HttpFetcher.

A step towards resolving 2394 -- we'll need to exponentially back
off on 500 and 503 as well as 502 if possible.

BUG=2394
TEST=unit tests, gmerged and made sure updates can happen

Change-Id: I7928e3af37f23ce1ba197315ec52ab0b2ed0dc4c

Review URL: http://codereview.chromium.org/3106038
4 files changed
tree: a32f652d84b4b25eebee4c7324e6c594014763dc
  1. .gitignore
  2. action.h
  3. action_pipe.h
  4. action_pipe_unittest.cc
  5. action_processor.cc
  6. action_processor.h
  7. action_processor_unittest.cc
  8. action_unittest.cc
  9. bzip.cc
  10. bzip.h
  11. bzip_extent_writer.cc
  12. bzip_extent_writer.h
  13. bzip_extent_writer_unittest.cc
  14. cycle_breaker.cc
  15. cycle_breaker.h
  16. cycle_breaker_unittest.cc
  17. dbus_constants.h
  18. dbus_service.cc
  19. dbus_service.h
  20. decompressing_file_writer.cc
  21. decompressing_file_writer.h
  22. decompressing_file_writer_unittest.cc
  23. delta_diff_generator.cc
  24. delta_diff_generator.h
  25. delta_diff_generator_unittest.cc
  26. delta_performer.cc
  27. delta_performer.h
  28. delta_performer_unittest.cc
  29. download_action.cc
  30. download_action.h
  31. download_action_unittest.cc
  32. extent_mapper.cc
  33. extent_mapper.h
  34. extent_mapper_unittest.cc
  35. extent_writer.cc
  36. extent_writer.h
  37. extent_writer_unittest.cc
  38. file_writer.cc
  39. file_writer.h
  40. file_writer_unittest.cc
  41. filesystem_copier_action.cc
  42. filesystem_copier_action.h
  43. filesystem_copier_action_unittest.cc
  44. filesystem_iterator.cc
  45. filesystem_iterator.h
  46. filesystem_iterator_unittest.cc
  47. gen_coverage_html.sh
  48. generate_delta_main.cc
  49. graph_types.h
  50. graph_utils.cc
  51. graph_utils.h
  52. graph_utils_unittest.cc
  53. gzip.cc
  54. gzip.h
  55. http_fetcher.h
  56. http_fetcher_unittest.cc
  57. inherit-review-settings-ok
  58. install_plan.h
  59. integration_unittest.cc
  60. libcurl_http_fetcher.cc
  61. libcurl_http_fetcher.h
  62. LICENSE
  63. local_coverage_rate.sh
  64. main.cc
  65. marshal.list
  66. mock_file_writer.h
  67. mock_http_fetcher.cc
  68. mock_http_fetcher.h
  69. omaha_hash_calculator.cc
  70. omaha_hash_calculator.h
  71. omaha_hash_calculator_unittest.cc
  72. omaha_request_action.cc
  73. omaha_request_action.h
  74. omaha_request_action_unittest.cc
  75. omaha_request_params.cc
  76. omaha_request_params.h
  77. omaha_request_params_unittest.cc
  78. omaha_response_handler_action.cc
  79. omaha_response_handler_action.h
  80. omaha_response_handler_action_unittest.cc
  81. org.chromium.UpdateEngine.service
  82. payload_signer.cc
  83. payload_signer.h
  84. payload_signer_unittest.cc
  85. postinstall_runner_action.cc
  86. postinstall_runner_action.h
  87. postinstall_runner_action_unittest.cc
  88. prefs.cc
  89. prefs.h
  90. prefs_interface.h
  91. prefs_mock.h
  92. prefs_unittest.cc
  93. SConstruct
  94. set_bootable_flag_action.cc
  95. set_bootable_flag_action.h
  96. set_bootable_flag_action_unittest.cc
  97. setup_dev_packages
  98. simple_key_value_store.cc
  99. simple_key_value_store.h
  100. simple_key_value_store_unittest.cc
  101. split_file_writer.cc
  102. split_file_writer.h
  103. split_file_writer_unittest.cc
  104. subprocess.cc
  105. subprocess.h
  106. subprocess_unittest.cc
  107. tarjan.cc
  108. tarjan.h
  109. tarjan_unittest.cc
  110. test_http_server.cc
  111. test_http_server.py
  112. test_utils.cc
  113. test_utils.h
  114. testrunner.cc
  115. topological_sort.cc
  116. topological_sort.h
  117. topological_sort_unittest.cc
  118. unittest_key.pem
  119. update_attempter.cc
  120. update_attempter.h
  121. update_engine.xml
  122. update_engine_client.cc
  123. update_metadata.proto
  124. UpdateEngine.conf
  125. utils.cc
  126. utils.h
  127. utils_unittest.cc
  128. WATCHLISTS
  129. zip_unittest.cc