| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2890 GURL::Replacements remove_params; | 2890 GURL::Replacements remove_params; |
| 2891 remove_params.ClearUsername(); | 2891 remove_params.ClearUsername(); |
| 2892 remove_params.ClearPassword(); | 2892 remove_params.ClearPassword(); |
| 2893 remove_params.ClearQuery(); | 2893 remove_params.ClearQuery(); |
| 2894 remove_params.ClearRef(); | 2894 remove_params.ClearRef(); |
| 2895 const GURL url_to_send = failed_url.ReplaceComponents(remove_params); | 2895 const GURL url_to_send = failed_url.ReplaceComponents(remove_params); |
| 2896 | 2896 |
| 2897 // Construct the query params to send to link doctor. | 2897 // Construct the query params to send to link doctor. |
| 2898 std::string params(alternate_error_page_url_.query()); | 2898 std::string params(alternate_error_page_url_.query()); |
| 2899 params.append("&url="); | 2899 params.append("&url="); |
| 2900 params.append(EscapeQueryParamValue(url_to_send.spec())); | 2900 params.append(EscapeQueryParamValue(url_to_send.spec(), true)); |
| 2901 params.append("&sourceid=chrome"); | 2901 params.append("&sourceid=chrome"); |
| 2902 params.append("&error="); | 2902 params.append("&error="); |
| 2903 switch (error_type) { | 2903 switch (error_type) { |
| 2904 case DNS_ERROR: | 2904 case DNS_ERROR: |
| 2905 params.append("dnserror"); | 2905 params.append("dnserror"); |
| 2906 break; | 2906 break; |
| 2907 | 2907 |
| 2908 case HTTP_404: | 2908 case HTTP_404: |
| 2909 params.append("http404"); | 2909 params.append("http404"); |
| 2910 break; | 2910 break; |
| (...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4012 | 4012 |
| 4013 message->EnableMessagePumping(); // Runs a nested message loop. | 4013 message->EnableMessagePumping(); // Runs a nested message loop. |
| 4014 bool rv = Send(message); | 4014 bool rv = Send(message); |
| 4015 | 4015 |
| 4016 PluginChannelHost::Broadcast( | 4016 PluginChannelHost::Broadcast( |
| 4017 new PluginMsg_ResetModalDialogEvent(host_window_)); | 4017 new PluginMsg_ResetModalDialogEvent(host_window_)); |
| 4018 | 4018 |
| 4019 return rv; | 4019 return rv; |
| 4020 } | 4020 } |
| 4021 | 4021 |
| OLD | NEW |