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/browser/renderer_host/chrome_render_message_filter.h" | 5 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/content_settings/cookie_settings.h" | 13 #include "chrome/browser/content_settings/cookie_settings.h" |
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
15 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" | 15 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" |
16 #include "chrome/browser/net/predictor.h" | 16 #include "chrome/browser/net/predictor.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
19 #include "chrome/common/render_messages.h" | 19 #include "chrome/common/render_messages.h" |
20 #include "components/web_cache/browser/web_cache_manager.h" | 20 #include "components/web_cache/browser/web_cache_manager.h" |
21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
22 #include "content/public/browser/render_process_host.h" | 22 #include "content/public/browser/render_process_host.h" |
23 | 23 |
24 #if defined(ENABLE_EXTENSIONS) | 24 #if defined(ENABLE_EXTENSIONS) |
25 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" | |
26 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | 25 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
27 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" | 26 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" |
| 27 #include "extensions/common/manifest_handlers/default_locale_handler.h" |
28 #endif | 28 #endif |
29 | 29 |
30 #if defined(ENABLE_TASK_MANAGER) | 30 #if defined(ENABLE_TASK_MANAGER) |
31 #include "chrome/browser/task_manager/task_manager.h" | 31 #include "chrome/browser/task_manager/task_manager.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #if defined(USE_TCMALLOC) | 34 #if defined(USE_TCMALLOC) |
35 #include "chrome/browser/browser_about_handler.h" | 35 #include "chrome/browser/browser_about_handler.h" |
36 #endif | 36 #endif |
37 | 37 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed, | 354 base::Bind(&TabSpecificContentSettings::IndexedDBAccessed, |
355 render_process_id_, render_frame_id, origin_url, name, | 355 render_process_id_, render_frame_id, origin_url, name, |
356 !*allowed)); | 356 !*allowed)); |
357 } | 357 } |
358 | 358 |
359 #if defined(ENABLE_PLUGINS) | 359 #if defined(ENABLE_PLUGINS) |
360 void ChromeRenderMessageFilter::OnIsCrashReportingEnabled(bool* enabled) { | 360 void ChromeRenderMessageFilter::OnIsCrashReportingEnabled(bool* enabled) { |
361 *enabled = ChromeMetricsServiceAccessor::IsCrashReportingEnabled(); | 361 *enabled = ChromeMetricsServiceAccessor::IsCrashReportingEnabled(); |
362 } | 362 } |
363 #endif | 363 #endif |
OLD | NEW |