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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "content/public/renderer/render_view.h" | 27 #include "content/public/renderer/render_view.h" |
28 #include "content/public/renderer/resource_fetcher.h" | 28 #include "content/public/renderer/resource_fetcher.h" |
29 #include "ipc/ipc_message.h" | 29 #include "ipc/ipc_message.h" |
30 #include "ipc/ipc_message_macros.h" | 30 #include "ipc/ipc_message_macros.h" |
31 #include "third_party/WebKit/public/platform/WebURL.h" | 31 #include "third_party/WebKit/public/platform/WebURL.h" |
32 #include "third_party/WebKit/public/platform/WebURLError.h" | 32 #include "third_party/WebKit/public/platform/WebURLError.h" |
33 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 33 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
34 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 34 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
35 #include "third_party/WebKit/public/web/WebDataSource.h" | 35 #include "third_party/WebKit/public/web/WebDataSource.h" |
36 #include "third_party/WebKit/public/web/WebDocument.h" | 36 #include "third_party/WebKit/public/web/WebDocument.h" |
37 #include "third_party/WebKit/public/web/WebFrame.h" | 37 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
38 #include "third_party/WebKit/public/web/WebView.h" | 38 #include "third_party/WebKit/public/web/WebView.h" |
39 #include "ui/base/resource/resource_bundle.h" | 39 #include "ui/base/resource/resource_bundle.h" |
40 #include "ui/base/webui/jstemplate_builder.h" | 40 #include "ui/base/webui/jstemplate_builder.h" |
41 #include "url/gurl.h" | 41 #include "url/gurl.h" |
42 | 42 |
43 using base::JSONWriter; | 43 using base::JSONWriter; |
44 using chrome_common_net::DnsProbeStatus; | 44 using chrome_common_net::DnsProbeStatus; |
45 using chrome_common_net::DnsProbeStatusToString; | 45 using chrome_common_net::DnsProbeStatusToString; |
46 using content::DocumentState; | 46 using content::DocumentState; |
47 using content::RenderFrame; | 47 using content::RenderFrame; |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 success ? data : "", | 341 success ? data : "", |
342 render_frame()->GetRenderView()->GetAcceptLanguages(), | 342 render_frame()->GetRenderView()->GetAcceptLanguages(), |
343 base::i18n::IsRTL()); | 343 base::i18n::IsRTL()); |
344 } | 344 } |
345 | 345 |
346 void NetErrorHelper::OnTrackingRequestComplete( | 346 void NetErrorHelper::OnTrackingRequestComplete( |
347 const blink::WebURLResponse& response, | 347 const blink::WebURLResponse& response, |
348 const std::string& data) { | 348 const std::string& data) { |
349 tracking_fetcher_.reset(); | 349 tracking_fetcher_.reset(); |
350 } | 350 } |
OLD | NEW |