| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/renderer/net/net_error_helper_core.h" | 5 #include "chrome/renderer/net/net_error_helper_core.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
| 15 #include "base/json/json_value_converter.h" | 15 #include "base/json/json_value_converter.h" |
| 16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
| 17 #include "base/location.h" | 17 #include "base/location.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/memory/scoped_vector.h" | 19 #include "base/memory/scoped_vector.h" |
| 20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
| 21 #include "base/strings/string16.h" | 21 #include "base/strings/string16.h" |
| 22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
| 23 #include "base/values.h" | 23 #include "base/values.h" |
| 24 #include "chrome/common/localized_error.h" | 24 #include "chrome/common/localized_error.h" |
| 25 #include "chrome/grit/generated_resources.h" |
| 25 #include "content/public/common/url_constants.h" | 26 #include "content/public/common/url_constants.h" |
| 26 #include "grit/generated_resources.h" | |
| 27 #include "net/base/escape.h" | 27 #include "net/base/escape.h" |
| 28 #include "net/base/net_errors.h" | 28 #include "net/base/net_errors.h" |
| 29 #include "net/base/net_util.h" | 29 #include "net/base/net_util.h" |
| 30 #include "third_party/WebKit/public/platform/WebString.h" | 30 #include "third_party/WebKit/public/platform/WebString.h" |
| 31 #include "third_party/WebKit/public/platform/WebURLError.h" | 31 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 #include "url/gurl.h" | 33 #include "url/gurl.h" |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| (...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 std::string request_body = CreateClickTrackingUrlRequestBody( | 939 std::string request_body = CreateClickTrackingUrlRequestBody( |
| 940 committed_error_page_info_->error, | 940 committed_error_page_info_->error, |
| 941 *committed_error_page_info_->navigation_correction_params, | 941 *committed_error_page_info_->navigation_correction_params, |
| 942 *response, | 942 *response, |
| 943 *response->corrections[tracking_id]); | 943 *response->corrections[tracking_id]); |
| 944 delegate_->SendTrackingRequest( | 944 delegate_->SendTrackingRequest( |
| 945 committed_error_page_info_->navigation_correction_params->url, | 945 committed_error_page_info_->navigation_correction_params->url, |
| 946 request_body); | 946 request_body); |
| 947 } | 947 } |
| 948 | 948 |
| OLD | NEW |