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/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/common/chrome_content_client.h" | 16 #include "chrome/common/chrome_content_client.h" |
17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/content_settings_pattern.h" | 19 #include "chrome/common/content_settings_pattern.h" |
20 #include "chrome/common/crash_keys.h" | 20 #include "chrome/common/crash_keys.h" |
21 #include "chrome/common/extensions/chrome_extensions_client.h" | 21 #include "chrome/common/extensions/chrome_extensions_client.h" |
22 #include "chrome/common/extensions/extension_constants.h" | 22 #include "chrome/common/extensions/extension_constants.h" |
23 #include "chrome/common/extensions/extension_process_policy.h" | 23 #include "chrome/common/extensions/extension_process_policy.h" |
24 #include "chrome/common/extensions/extension_set.h" | |
25 #include "chrome/common/localized_error.h" | 24 #include "chrome/common/localized_error.h" |
26 #include "chrome/common/pepper_permission_util.h" | 25 #include "chrome/common/pepper_permission_util.h" |
27 #include "chrome/common/render_messages.h" | 26 #include "chrome/common/render_messages.h" |
28 #include "chrome/common/url_constants.h" | 27 #include "chrome/common/url_constants.h" |
29 #include "chrome/renderer/benchmarking_extension.h" | 28 #include "chrome/renderer/benchmarking_extension.h" |
30 #include "chrome/renderer/chrome_render_process_observer.h" | 29 #include "chrome/renderer/chrome_render_process_observer.h" |
31 #include "chrome/renderer/chrome_render_view_observer.h" | 30 #include "chrome/renderer/chrome_render_view_observer.h" |
32 #include "chrome/renderer/content_settings_observer.h" | 31 #include "chrome/renderer/content_settings_observer.h" |
33 #include "chrome/renderer/extensions/chrome_v8_context.h" | 32 #include "chrome/renderer/extensions/chrome_v8_context.h" |
34 #include "chrome/renderer/extensions/chrome_v8_extension.h" | 33 #include "chrome/renderer/extensions/chrome_v8_extension.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "components/autofill/core/common/password_generation_util.h" | 67 #include "components/autofill/core/common/password_generation_util.h" |
69 #include "components/nacl/renderer/ppb_nacl_private_impl.h" | 68 #include "components/nacl/renderer/ppb_nacl_private_impl.h" |
70 #include "components/plugins/renderer/mobile_youtube_plugin.h" | 69 #include "components/plugins/renderer/mobile_youtube_plugin.h" |
71 #include "components/visitedlink/renderer/visitedlink_slave.h" | 70 #include "components/visitedlink/renderer/visitedlink_slave.h" |
72 #include "content/public/common/content_constants.h" | 71 #include "content/public/common/content_constants.h" |
73 #include "content/public/renderer/render_thread.h" | 72 #include "content/public/renderer/render_thread.h" |
74 #include "content/public/renderer/render_view.h" | 73 #include "content/public/renderer/render_view.h" |
75 #include "content/public/renderer/render_view_visitor.h" | 74 #include "content/public/renderer/render_view_visitor.h" |
76 #include "extensions/common/constants.h" | 75 #include "extensions/common/constants.h" |
77 #include "extensions/common/extension.h" | 76 #include "extensions/common/extension.h" |
| 77 #include "extensions/common/extension_set.h" |
78 #include "extensions/common/extension_urls.h" | 78 #include "extensions/common/extension_urls.h" |
79 #include "grit/generated_resources.h" | 79 #include "grit/generated_resources.h" |
80 #include "grit/locale_settings.h" | 80 #include "grit/locale_settings.h" |
81 #include "grit/renderer_resources.h" | 81 #include "grit/renderer_resources.h" |
82 #include "ipc/ipc_sync_channel.h" | 82 #include "ipc/ipc_sync_channel.h" |
83 #include "net/base/net_errors.h" | 83 #include "net/base/net_errors.h" |
84 #include "ppapi/c/private/ppb_nacl_private.h" | 84 #include "ppapi/c/private/ppb_nacl_private.h" |
85 #include "ppapi/c/private/ppb_pdf.h" | 85 #include "ppapi/c/private/ppb_pdf.h" |
86 #include "ppapi/shared_impl/ppapi_switches.h" | 86 #include "ppapi/shared_impl/ppapi_switches.h" |
87 #include "third_party/WebKit/public/platform/WebURL.h" | 87 #include "third_party/WebKit/public/platform/WebURL.h" |
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 1364 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
1365 return !command_line->HasSwitch(switches::kExtensionProcess); | 1365 return !command_line->HasSwitch(switches::kExtensionProcess); |
1366 } | 1366 } |
1367 | 1367 |
1368 blink::WebWorkerPermissionClientProxy* | 1368 blink::WebWorkerPermissionClientProxy* |
1369 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( | 1369 ChromeContentRendererClient::CreateWorkerPermissionClientProxy( |
1370 content::RenderView* render_view, | 1370 content::RenderView* render_view, |
1371 blink::WebFrame* frame) { | 1371 blink::WebFrame* frame) { |
1372 return new WorkerPermissionClientProxy(render_view, frame); | 1372 return new WorkerPermissionClientProxy(render_view, frame); |
1373 } | 1373 } |
OLD | NEW |