| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 #include "chrome/renderer/printing/chrome_print_web_view_helper_delegate.h" | 140 #include "chrome/renderer/printing/chrome_print_web_view_helper_delegate.h" |
| 141 #include "components/printing/renderer/print_web_view_helper.h" | 141 #include "components/printing/renderer/print_web_view_helper.h" |
| 142 #include "printing/print_settings.h" | 142 #include "printing/print_settings.h" |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 #if defined(ENABLE_PRINT_PREVIEW) | 145 #if defined(ENABLE_PRINT_PREVIEW) |
| 146 #include "chrome/renderer/pepper/chrome_pdf_print_client.h" | 146 #include "chrome/renderer/pepper/chrome_pdf_print_client.h" |
| 147 #endif | 147 #endif |
| 148 | 148 |
| 149 #if defined(ENABLE_SPELLCHECK) | 149 #if defined(ENABLE_SPELLCHECK) |
| 150 #include "chrome/renderer/spellchecker/spellcheck.h" | 150 #include "components/spellcheck/renderer/spellcheck.h" |
| 151 #include "chrome/renderer/spellchecker/spellcheck_provider.h" | 151 #include "components/spellcheck/renderer/spellcheck_provider.h" |
| 152 #endif | 152 #endif |
| 153 | 153 |
| 154 #if defined(ENABLE_WEBRTC) | 154 #if defined(ENABLE_WEBRTC) |
| 155 #include "chrome/renderer/media/webrtc_logging_message_filter.h" | 155 #include "chrome/renderer/media/webrtc_logging_message_filter.h" |
| 156 #endif | 156 #endif |
| 157 | 157 |
| 158 using autofill::AutofillAgent; | 158 using autofill::AutofillAgent; |
| 159 using autofill::PasswordAutofillAgent; | 159 using autofill::PasswordAutofillAgent; |
| 160 using autofill::PasswordGenerationAgent; | 160 using autofill::PasswordGenerationAgent; |
| 161 using base::ASCIIToUTF16; | 161 using base::ASCIIToUTF16; |
| (...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 | 1465 |
| 1466 url::Replacements<char> r; | 1466 url::Replacements<char> r; |
| 1467 r.SetPath(path.c_str(), url::Component(0, path.length())); | 1467 r.SetPath(path.c_str(), url::Component(0, path.length())); |
| 1468 | 1468 |
| 1469 if (result == internal::NUM_PLUGIN_ERROR) | 1469 if (result == internal::NUM_PLUGIN_ERROR) |
| 1470 result = invalid_url ? internal::SUCCESS_PARAMS_REWRITE : internal::SUCCESS; | 1470 result = invalid_url ? internal::SUCCESS_PARAMS_REWRITE : internal::SUCCESS; |
| 1471 | 1471 |
| 1472 RecordYouTubeRewriteUMA(result); | 1472 RecordYouTubeRewriteUMA(result); |
| 1473 return corrected_url.ReplaceComponents(r); | 1473 return corrected_url.ReplaceComponents(r); |
| 1474 } | 1474 } |
| OLD | NEW |