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 "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/common/localized_error.h" | 8 #include "chrome/common/localized_error.h" |
9 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
10 #include "chrome/common/net/net_error_info.h" | 10 #include "chrome/common/net/net_error_info.h" |
11 #include "content/public/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
12 #include "content/public/common/url_constants.h" | 12 #include "content/public/common/url_constants.h" |
13 #include "content/public/renderer/content_renderer_client.h" | 13 #include "content/public/renderer/content_renderer_client.h" |
14 #include "content/public/renderer/render_thread.h" | 14 #include "content/public/renderer/render_thread.h" |
15 #include "content/public/renderer/render_view.h" | 15 #include "content/public/renderer/render_view.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "ipc/ipc_message.h" | 17 #include "ipc/ipc_message.h" |
18 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 20 #include "third_party/WebKit/public/platform/WebURL.h" |
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" | 21 #include "third_party/WebKit/public/platform/WebURLError.h" |
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 22 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
25 | 25 |
26 using base::DictionaryValue; | 26 using base::DictionaryValue; |
27 using chrome_common_net::DnsProbeResult; | 27 using chrome_common_net::DnsProbeResult; |
28 using content::RenderThread; | 28 using content::RenderThread; |
29 using content::RenderView; | 29 using content::RenderView; |
30 using content::RenderViewObserver; | 30 using content::RenderViewObserver; |
31 using content::kUnreachableWebDataURL; | 31 using content::kUnreachableWebDataURL; |
32 | 32 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 DVLOG(1) << "net error code is " << net_error; | 182 DVLOG(1) << "net error code is " << net_error; |
183 | 183 |
184 DictionaryValue error_strings; | 184 DictionaryValue error_strings; |
185 LocalizedError::GetStrings(NetErrorToWebURLError(net_error), | 185 LocalizedError::GetStrings(NetErrorToWebURLError(net_error), |
186 is_failed_post_, | 186 is_failed_post_, |
187 RenderThread::Get()->GetLocale(), | 187 RenderThread::Get()->GetLocale(), |
188 &error_strings); | 188 &error_strings); |
189 | 189 |
190 // TODO(ttuttle): Update error page with error_strings. | 190 // TODO(ttuttle): Update error page with error_strings. |
191 } | 191 } |
OLD | NEW |