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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 prefs.spatial_navigation_enabled = command_line.HasSwitch( | 476 prefs.spatial_navigation_enabled = command_line.HasSwitch( |
477 switches::kEnableSpatialNavigation); | 477 switches::kEnableSpatialNavigation); |
478 | 478 |
479 if (command_line.HasSwitch(switches::kV8CacheOptions)) { | 479 if (command_line.HasSwitch(switches::kV8CacheOptions)) { |
480 const std::string v8_cache_options = | 480 const std::string v8_cache_options = |
481 command_line.GetSwitchValueASCII(switches::kV8CacheOptions); | 481 command_line.GetSwitchValueASCII(switches::kV8CacheOptions); |
482 if (v8_cache_options == "parse") { | 482 if (v8_cache_options == "parse") { |
483 prefs.v8_cache_options = V8_CACHE_OPTIONS_PARSE; | 483 prefs.v8_cache_options = V8_CACHE_OPTIONS_PARSE; |
484 } else if (v8_cache_options == "code") { | 484 } else if (v8_cache_options == "code") { |
485 prefs.v8_cache_options = V8_CACHE_OPTIONS_CODE; | 485 prefs.v8_cache_options = V8_CACHE_OPTIONS_CODE; |
| 486 } else if (v8_cache_options == "code-compressed") { |
| 487 prefs.v8_cache_options = V8_CACHE_OPTIONS_CODE_COMPRESSED; |
486 } else { | 488 } else { |
487 prefs.v8_cache_options = V8_CACHE_OPTIONS_OFF; | 489 prefs.v8_cache_options = V8_CACHE_OPTIONS_OFF; |
488 } | 490 } |
489 } | 491 } |
490 | 492 |
491 std::string streaming_experiment_group = | 493 std::string streaming_experiment_group = |
492 base::FieldTrialList::FindFullName("V8ScriptStreaming"); | 494 base::FieldTrialList::FindFullName("V8ScriptStreaming"); |
493 prefs.v8_script_streaming_enabled = | 495 prefs.v8_script_streaming_enabled = |
494 command_line.HasSwitch(switches::kEnableV8ScriptStreaming); | 496 command_line.HasSwitch(switches::kEnableV8ScriptStreaming); |
495 if (streaming_experiment_group == "Enabled") { | 497 if (streaming_experiment_group == "Enabled") { |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1466 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1465 | 1467 |
1466 frame_tree->ResetForMainFrameSwap(); | 1468 frame_tree->ResetForMainFrameSwap(); |
1467 } | 1469 } |
1468 | 1470 |
1469 void RenderViewHostImpl::SelectWordAroundCaret() { | 1471 void RenderViewHostImpl::SelectWordAroundCaret() { |
1470 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1472 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1471 } | 1473 } |
1472 | 1474 |
1473 } // namespace content | 1475 } // namespace content |
OLD | NEW |