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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 721683002: Introduce option "code-compressed" to --v8-code-options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | content/public/common/web_preferences.h » ('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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/public/common/web_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698