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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 46583005: Send Allow{Database,FileSystem,IndexedDB} sync IPCs directly from worker thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 1 month 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 | Annotate | Revision Log
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/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"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "chrome/renderer/prerender/prerender_media_load_deferrer.h" 56 #include "chrome/renderer/prerender/prerender_media_load_deferrer.h"
57 #include "chrome/renderer/prerender/prerenderer_client.h" 57 #include "chrome/renderer/prerender/prerenderer_client.h"
58 #include "chrome/renderer/printing/print_web_view_helper.h" 58 #include "chrome/renderer/printing/print_web_view_helper.h"
59 #include "chrome/renderer/safe_browsing/malware_dom_details.h" 59 #include "chrome/renderer/safe_browsing/malware_dom_details.h"
60 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h" 60 #include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
61 #include "chrome/renderer/searchbox/search_bouncer.h" 61 #include "chrome/renderer/searchbox/search_bouncer.h"
62 #include "chrome/renderer/searchbox/searchbox.h" 62 #include "chrome/renderer/searchbox/searchbox.h"
63 #include "chrome/renderer/searchbox/searchbox_extension.h" 63 #include "chrome/renderer/searchbox/searchbox_extension.h"
64 #include "chrome/renderer/tts_dispatcher.h" 64 #include "chrome/renderer/tts_dispatcher.h"
65 #include "chrome/renderer/validation_message_agent.h" 65 #include "chrome/renderer/validation_message_agent.h"
66 #include "chrome/renderer/worker_permission_client_proxy.h"
66 #include "components/autofill/content/renderer/autofill_agent.h" 67 #include "components/autofill/content/renderer/autofill_agent.h"
67 #include "components/autofill/content/renderer/password_autofill_agent.h" 68 #include "components/autofill/content/renderer/password_autofill_agent.h"
68 #include "components/autofill/content/renderer/password_generation_agent.h" 69 #include "components/autofill/content/renderer/password_generation_agent.h"
69 #include "components/autofill/core/common/password_generation_util.h" 70 #include "components/autofill/core/common/password_generation_util.h"
70 #include "components/plugins/renderer/mobile_youtube_plugin.h" 71 #include "components/plugins/renderer/mobile_youtube_plugin.h"
71 #include "components/visitedlink/renderer/visitedlink_slave.h" 72 #include "components/visitedlink/renderer/visitedlink_slave.h"
72 #include "content/public/common/content_constants.h" 73 #include "content/public/common/content_constants.h"
73 #include "content/public/renderer/render_thread.h" 74 #include "content/public/renderer/render_thread.h"
74 #include "content/public/renderer/render_view.h" 75 #include "content/public/renderer/render_view.h"
75 #include "content/public/renderer/render_view_visitor.h" 76 #include "content/public/renderer/render_view_visitor.h"
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 bool ChromeContentRendererClient::ShouldEnableSiteIsolationPolicy() const { 1390 bool ChromeContentRendererClient::ShouldEnableSiteIsolationPolicy() const {
1390 // SiteIsolationPolicy is off by default. We would like to activate cross-site 1391 // SiteIsolationPolicy is off by default. We would like to activate cross-site
1391 // document blocking (for UMA data collection) for normal renderer processes 1392 // document blocking (for UMA data collection) for normal renderer processes
1392 // running a normal web page from the Internet. We only turn on 1393 // running a normal web page from the Internet. We only turn on
1393 // SiteIsolationPolicy for a renderer process that does not have the extension 1394 // SiteIsolationPolicy for a renderer process that does not have the extension
1394 // flag on. 1395 // flag on.
1395 CommandLine* command_line = CommandLine::ForCurrentProcess(); 1396 CommandLine* command_line = CommandLine::ForCurrentProcess();
1396 return !command_line->HasSwitch(switches::kExtensionProcess); 1397 return !command_line->HasSwitch(switches::kExtensionProcess);
1397 } 1398 }
1398 1399
1400 WebKit::WebWorkerPermissionClientProxy*
1401 ChromeContentRendererClient::CreateWorkerPermissionClientProxy(
1402 content::RenderView* render_view,
1403 WebKit::WebFrame* frame) {
1404 return new WorkerPermissionClientProxy(render_view, frame);
1405 }
1406
1399 } // namespace chrome 1407 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | chrome/renderer/worker_permission_client_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698