| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #include "chrome/renderer/validation_message_agent.h" | 64 #include "chrome/renderer/validation_message_agent.h" |
| 65 #include "components/autofill/content/renderer/autofill_agent.h" | 65 #include "components/autofill/content/renderer/autofill_agent.h" |
| 66 #include "components/autofill/content/renderer/password_autofill_agent.h" | 66 #include "components/autofill/content/renderer/password_autofill_agent.h" |
| 67 #include "components/autofill/content/renderer/password_generation_manager.h" | 67 #include "components/autofill/content/renderer/password_generation_manager.h" |
| 68 #include "components/visitedlink/renderer/visitedlink_slave.h" | 68 #include "components/visitedlink/renderer/visitedlink_slave.h" |
| 69 #include "content/public/common/content_constants.h" | 69 #include "content/public/common/content_constants.h" |
| 70 #include "content/public/renderer/render_thread.h" | 70 #include "content/public/renderer/render_thread.h" |
| 71 #include "content/public/renderer/render_view.h" | 71 #include "content/public/renderer/render_view.h" |
| 72 #include "content/public/renderer/render_view_visitor.h" | 72 #include "content/public/renderer/render_view_visitor.h" |
| 73 #include "extensions/common/constants.h" | 73 #include "extensions/common/constants.h" |
| 74 #include "extensions/common/extension_urls.h" |
| 74 #include "grit/generated_resources.h" | 75 #include "grit/generated_resources.h" |
| 75 #include "grit/locale_settings.h" | 76 #include "grit/locale_settings.h" |
| 76 #include "grit/renderer_resources.h" | 77 #include "grit/renderer_resources.h" |
| 77 #include "ipc/ipc_sync_channel.h" | 78 #include "ipc/ipc_sync_channel.h" |
| 78 #include "net/base/net_errors.h" | 79 #include "net/base/net_errors.h" |
| 79 #include "ppapi/c/private/ppb_nacl_private.h" | 80 #include "ppapi/c/private/ppb_nacl_private.h" |
| 80 #include "ppapi/c/private/ppb_pdf.h" | 81 #include "ppapi/c/private/ppb_pdf.h" |
| 81 #include "ppapi/shared_impl/ppapi_switches.h" | 82 #include "ppapi/shared_impl/ppapi_switches.h" |
| 82 #include "third_party/WebKit/public/web/WebCache.h" | 83 #include "third_party/WebKit/public/web/WebCache.h" |
| 83 #include "third_party/WebKit/public/web/WebDataSource.h" | 84 #include "third_party/WebKit/public/web/WebDataSource.h" |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 if (CommandLine::ForCurrentProcess()->HasSwitch( | 1295 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 1295 switches::kEnablePepperTesting)) { | 1296 switches::kEnablePepperTesting)) { |
| 1296 return true; | 1297 return true; |
| 1297 } | 1298 } |
| 1298 #endif // !defined(OS_ANDROID) | 1299 #endif // !defined(OS_ANDROID) |
| 1299 return false; | 1300 return false; |
| 1300 } | 1301 } |
| 1301 | 1302 |
| 1302 bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource( | 1303 bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource( |
| 1303 const base::string16& source) const { | 1304 const base::string16& source) const { |
| 1304 return GURL(source).SchemeIs(extensions::kExtensionScheme); | 1305 return extensions::IsSourceFromAnExtension(source); |
| 1305 } | 1306 } |
| 1306 | 1307 |
| 1307 } // namespace chrome | 1308 } // namespace chrome |
| OLD | NEW |