Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/renderer_host/chrome_render_message_filter.cc

Issue 2387613002: Merge Content Settings IPCs back to chrome/common/render_messages.h (Closed)
Patch Set: Cover param_traits in chrome/common/OWNERS, as requested by the presubmit script Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/plugins/plugin_observer.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/metrics/field_trial.h" 15 #include "base/metrics/field_trial.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
18 #include "chrome/browser/content_settings/cookie_settings_factory.h" 18 #include "chrome/browser/content_settings/cookie_settings_factory.h"
19 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 19 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
20 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 20 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
21 #include "chrome/browser/net/predictor.h" 21 #include "chrome/browser/net/predictor.h"
22 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
23 #include "chrome/browser/profiles/profile_manager.h" 23 #include "chrome/browser/profiles/profile_manager.h"
24 #include "chrome/common/render_messages.h" 24 #include "chrome/common/render_messages.h"
25 #include "components/content_settings/content/common/content_settings_messages.h "
26 #include "components/content_settings/core/browser/cookie_settings.h" 25 #include "components/content_settings/core/browser/cookie_settings.h"
27 #include "components/network_hints/common/network_hints_common.h" 26 #include "components/network_hints/common/network_hints_common.h"
28 #include "components/network_hints/common/network_hints_messages.h" 27 #include "components/network_hints/common/network_hints_messages.h"
29 #include "components/rappor/rappor_service.h" 28 #include "components/rappor/rappor_service.h"
30 #include "components/rappor/rappor_utils.h" 29 #include "components/rappor/rappor_utils.h"
31 #include "components/web_cache/browser/web_cache_manager.h" 30 #include "components/web_cache/browser/web_cache_manager.h"
32 #include "content/public/browser/notification_service.h" 31 #include "content/public/browser/notification_service.h"
33 #include "content/public/browser/render_process_host.h" 32 #include "content/public/browser/render_process_host.h"
34 #include "content/public/browser/service_worker_context.h" 33 #include "content/public/browser/service_worker_context.h"
35 34
36 #if defined(ENABLE_EXTENSIONS) 35 #if defined(ENABLE_EXTENSIONS)
37 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" 36 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h"
38 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" 37 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h"
39 #include "extensions/common/manifest_handlers/default_locale_handler.h" 38 #include "extensions/common/manifest_handlers/default_locale_handler.h"
40 #endif 39 #endif
41 40
42 using content::BrowserThread; 41 using content::BrowserThread;
43 42
44 namespace { 43 namespace {
45 44
46 const uint32_t kFilteredMessageClasses[] = { 45 const uint32_t kFilteredMessageClasses[] = {
47 ChromeMsgStart, ContentSettingsMsgStart, NetworkHintsMsgStart, 46 ChromeMsgStart, NetworkHintsMsgStart,
48 }; 47 };
49 48
50 void DidStartServiceWorkerForNavigationHint(bool success) { 49 void DidStartServiceWorkerForNavigationHint(bool success) {
51 DCHECK_CURRENTLY_ON(BrowserThread::UI); 50 DCHECK_CURRENTLY_ON(BrowserThread::UI);
52 } 51 }
53 52
54 } // namespace 53 } // namespace
55 54
56 ChromeRenderMessageFilter::ChromeRenderMessageFilter( 55 ChromeRenderMessageFilter::ChromeRenderMessageFilter(
57 int render_process_id, 56 int render_process_id,
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 rappor::SampleString(g_browser_process->rappor_service(), metric, 370 rappor::SampleString(g_browser_process->rappor_service(), metric,
372 rappor::ETLD_PLUS_ONE_RAPPOR_TYPE, sample); 371 rappor::ETLD_PLUS_ONE_RAPPOR_TYPE, sample);
373 } 372 }
374 373
375 void ChromeRenderMessageFilter::OnRecordRapporURL(const std::string& metric, 374 void ChromeRenderMessageFilter::OnRecordRapporURL(const std::string& metric,
376 const GURL& sample) { 375 const GURL& sample) {
377 DCHECK_CURRENTLY_ON(BrowserThread::UI); 376 DCHECK_CURRENTLY_ON(BrowserThread::UI);
378 rappor::SampleDomainAndRegistryFromGURL(g_browser_process->rappor_service(), 377 rappor::SampleDomainAndRegistryFromGURL(g_browser_process->rappor_service(),
379 metric, sample); 378 metric, sample);
380 } 379 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_observer.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698