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 "content/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 prefs.flash_stage3d_enabled = | 518 prefs.flash_stage3d_enabled = |
519 GpuProcessHost::gpu_enabled() && | 519 GpuProcessHost::gpu_enabled() && |
520 !command_line.HasSwitch(switches::kDisableFlashStage3d); | 520 !command_line.HasSwitch(switches::kDisableFlashStage3d); |
521 | 521 |
522 prefs.gl_multisampling_enabled = | 522 prefs.gl_multisampling_enabled = |
523 !command_line.HasSwitch(switches::kDisableGLMultisampling); | 523 !command_line.HasSwitch(switches::kDisableGLMultisampling); |
524 prefs.privileged_webgl_extensions_enabled = | 524 prefs.privileged_webgl_extensions_enabled = |
525 command_line.HasSwitch(switches::kEnablePrivilegedWebGLExtensions); | 525 command_line.HasSwitch(switches::kEnablePrivilegedWebGLExtensions); |
526 prefs.site_specific_quirks_enabled = | 526 prefs.site_specific_quirks_enabled = |
527 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); | 527 !command_line.HasSwitch(switches::kDisableSiteSpecificQuirks); |
528 prefs.allow_universal_access_from_file_urls = | |
529 command_line.HasSwitch(switches::kAllowUniversalAccessFromFiles); | |
530 prefs.allow_file_access_from_file_urls = | 528 prefs.allow_file_access_from_file_urls = |
531 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); | 529 command_line.HasSwitch(switches::kAllowFileAccessFromFiles); |
532 prefs.show_composited_layer_borders = | 530 prefs.show_composited_layer_borders = |
533 command_line.HasSwitch(switches::kShowCompositedLayerBorders); | 531 command_line.HasSwitch(switches::kShowCompositedLayerBorders); |
534 prefs.show_composited_layer_tree = | 532 prefs.show_composited_layer_tree = |
535 command_line.HasSwitch(switches::kShowCompositedLayerTree); | 533 command_line.HasSwitch(switches::kShowCompositedLayerTree); |
536 prefs.show_fps_counter = | 534 prefs.show_fps_counter = |
537 command_line.HasSwitch(switches::kShowFPSCounter); | 535 command_line.HasSwitch(switches::kShowFPSCounter); |
538 prefs.accelerated_compositing_for_overflow_scroll_enabled = | 536 prefs.accelerated_compositing_for_overflow_scroll_enabled = |
539 command_line.HasSwitch( | 537 command_line.HasSwitch( |
(...skipping 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3407 } | 3405 } |
3408 } | 3406 } |
3409 | 3407 |
3410 content::BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { | 3408 content::BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { |
3411 return browser_plugin_guest_.get(); | 3409 return browser_plugin_guest_.get(); |
3412 } | 3410 } |
3413 | 3411 |
3414 content::BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { | 3412 content::BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { |
3415 return browser_plugin_embedder_.get(); | 3413 return browser_plugin_embedder_.get(); |
3416 } | 3414 } |
OLD | NEW |