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 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
19 #include "chrome/grit/renderer_resources.h" | |
20 #include "components/error_page/common/error_page_params.h" | 19 #include "components/error_page/common/error_page_params.h" |
21 #include "components/error_page/common/localized_error.h" | 20 #include "components/error_page/common/localized_error.h" |
22 #include "components/error_page/common/net_error_info.h" | 21 #include "components/error_page/common/net_error_info.h" |
23 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
24 #include "content/public/common/url_constants.h" | 23 #include "content/public/common/url_constants.h" |
25 #include "content/public/renderer/content_renderer_client.h" | 24 #include "content/public/renderer/content_renderer_client.h" |
26 #include "content/public/renderer/document_state.h" | 25 #include "content/public/renderer/document_state.h" |
27 #include "content/public/renderer/render_frame.h" | 26 #include "content/public/renderer/render_frame.h" |
28 #include "content/public/renderer/render_thread.h" | 27 #include "content/public/renderer/render_thread.h" |
29 #include "content/public/renderer/render_view.h" | 28 #include "content/public/renderer/render_view.h" |
30 #include "content/public/renderer/resource_fetcher.h" | 29 #include "content/public/renderer/resource_fetcher.h" |
| 30 #include "grit/components_resources.h" |
31 #include "ipc/ipc_message.h" | 31 #include "ipc/ipc_message.h" |
32 #include "ipc/ipc_message_macros.h" | 32 #include "ipc/ipc_message_macros.h" |
33 #include "third_party/WebKit/public/platform/WebURL.h" | 33 #include "third_party/WebKit/public/platform/WebURL.h" |
34 #include "third_party/WebKit/public/platform/WebURLError.h" | 34 #include "third_party/WebKit/public/platform/WebURLError.h" |
35 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 35 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
36 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 36 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
37 #include "third_party/WebKit/public/web/WebDataSource.h" | 37 #include "third_party/WebKit/public/web/WebDataSource.h" |
38 #include "third_party/WebKit/public/web/WebDocument.h" | 38 #include "third_party/WebKit/public/web/WebDocument.h" |
39 #include "third_party/WebKit/public/web/WebFrame.h" | 39 #include "third_party/WebKit/public/web/WebFrame.h" |
40 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 40 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 const std::string& data) { | 386 const std::string& data) { |
387 tracking_fetcher_.reset(); | 387 tracking_fetcher_.reset(); |
388 } | 388 } |
389 | 389 |
390 #if defined(OS_ANDROID) | 390 #if defined(OS_ANDROID) |
391 void NetErrorHelper::OnSetOfflinePageInfo( | 391 void NetErrorHelper::OnSetOfflinePageInfo( |
392 OfflinePageStatus offline_page_status) { | 392 OfflinePageStatus offline_page_status) { |
393 core_->OnSetOfflinePageInfo(offline_page_status); | 393 core_->OnSetOfflinePageInfo(offline_page_status); |
394 } | 394 } |
395 #endif // defined(OS_ANDROID) | 395 #endif // defined(OS_ANDROID) |
OLD | NEW |