OLD | NEW |
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 #include "chrome/renderer/net/net_error_helper.h" | 5 #include "chrome/renderer/net/net_error_helper.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "build/build_config.h" |
15 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/localized_error.h" | 17 #include "chrome/common/localized_error.h" |
17 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
18 #include "chrome/grit/renderer_resources.h" | 19 #include "chrome/grit/renderer_resources.h" |
19 #include "components/error_page/common/error_page_params.h" | 20 #include "components/error_page/common/error_page_params.h" |
20 #include "components/error_page/common/net_error_info.h" | 21 #include "components/error_page/common/net_error_info.h" |
21 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
22 #include "content/public/common/url_constants.h" | 23 #include "content/public/common/url_constants.h" |
23 #include "content/public/renderer/content_renderer_client.h" | 24 #include "content/public/renderer/content_renderer_client.h" |
24 #include "content/public/renderer/document_state.h" | 25 #include "content/public/renderer/document_state.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 const std::string& data) { | 390 const std::string& data) { |
390 tracking_fetcher_.reset(); | 391 tracking_fetcher_.reset(); |
391 } | 392 } |
392 | 393 |
393 #if defined(OS_ANDROID) | 394 #if defined(OS_ANDROID) |
394 void NetErrorHelper::OnSetOfflinePageInfo( | 395 void NetErrorHelper::OnSetOfflinePageInfo( |
395 OfflinePageStatus offline_page_status) { | 396 OfflinePageStatus offline_page_status) { |
396 core_->OnSetOfflinePageInfo(offline_page_status); | 397 core_->OnSetOfflinePageInfo(offline_page_status); |
397 } | 398 } |
398 #endif // defined(OS_ANDROID) | 399 #endif // defined(OS_ANDROID) |
OLD | NEW |