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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
331 !command_line.HasSwitch(switches::kDisableWebSecurity); | 331 !command_line.HasSwitch(switches::kDisableWebSecurity); |
332 prefs.plugins_enabled = | 332 prefs.plugins_enabled = |
333 !command_line.HasSwitch(switches::kDisablePlugins); | 333 !command_line.HasSwitch(switches::kDisablePlugins); |
334 prefs.java_enabled = | 334 prefs.java_enabled = |
335 !command_line.HasSwitch(switches::kDisableJava); | 335 !command_line.HasSwitch(switches::kDisableJava); |
336 | 336 |
337 prefs.remote_fonts_enabled = | 337 prefs.remote_fonts_enabled = |
338 !command_line.HasSwitch(switches::kDisableRemoteFonts); | 338 !command_line.HasSwitch(switches::kDisableRemoteFonts); |
339 prefs.xslt_enabled = | 339 prefs.xslt_enabled = |
340 !command_line.HasSwitch(switches::kDisableXSLT); | 340 !command_line.HasSwitch(switches::kDisableXSLT); |
341 prefs.application_cache_enabled = | |
342 !command_line.HasSwitch(switches::kDisableApplicationCache); | |
Matt Giuca
2015/01/15 02:39:29
This seems to have broken AppCache. Since WebPrefe
| |
343 | 341 |
344 prefs.local_storage_enabled = | 342 prefs.local_storage_enabled = |
345 !command_line.HasSwitch(switches::kDisableLocalStorage); | 343 !command_line.HasSwitch(switches::kDisableLocalStorage); |
346 prefs.databases_enabled = | 344 prefs.databases_enabled = |
347 !command_line.HasSwitch(switches::kDisableDatabases); | 345 !command_line.HasSwitch(switches::kDisableDatabases); |
348 #if defined(OS_ANDROID) | 346 #if defined(OS_ANDROID) |
349 // WebAudio is enabled by default on x86 and ARM. | 347 // WebAudio is enabled by default on x86 and ARM. |
350 prefs.webaudio_enabled = | 348 prefs.webaudio_enabled = |
351 !command_line.HasSwitch(switches::kDisableWebAudio); | 349 !command_line.HasSwitch(switches::kDisableWebAudio); |
352 #endif | 350 #endif |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1484 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1482 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1485 | 1483 |
1486 frame_tree->ResetForMainFrameSwap(); | 1484 frame_tree->ResetForMainFrameSwap(); |
1487 } | 1485 } |
1488 | 1486 |
1489 void RenderViewHostImpl::SelectWordAroundCaret() { | 1487 void RenderViewHostImpl::SelectWordAroundCaret() { |
1490 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1488 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1491 } | 1489 } |
1492 | 1490 |
1493 } // namespace content | 1491 } // namespace content |
OLD | NEW |