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

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

Issue 298803006: NetInfo V3 support for browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore accidentally removed param traits Created 6 years, 6 months 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 | « content/browser/net/browser_online_state_observer.cc ('k') | content/common/p2p_messages.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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 // Certain GPU features might have been blacklisted. 454 // Certain GPU features might have been blacklisted.
455 GpuDataManagerImpl::GetInstance()->UpdateRendererWebPrefs(&prefs); 455 GpuDataManagerImpl::GetInstance()->UpdateRendererWebPrefs(&prefs);
456 456
457 if (ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( 457 if (ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings(
458 GetProcess()->GetID())) { 458 GetProcess()->GetID())) {
459 prefs.loads_images_automatically = true; 459 prefs.loads_images_automatically = true;
460 prefs.javascript_enabled = true; 460 prefs.javascript_enabled = true;
461 } 461 }
462 462
463 prefs.is_online = !net::NetworkChangeNotifier::IsOffline(); 463 prefs.is_online = !net::NetworkChangeNotifier::IsOffline();
464 prefs.connection_type = net::NetworkChangeNotifier::GetConnectionType();
464 465
465 prefs.gesture_tap_highlight_enabled = !command_line.HasSwitch( 466 prefs.gesture_tap_highlight_enabled = !command_line.HasSwitch(
466 switches::kDisableGestureTapHighlight); 467 switches::kDisableGestureTapHighlight);
467 468
468 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors(); 469 prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors();
469 470
470 prefs.viewport_meta_enabled = 471 prefs.viewport_meta_enabled =
471 command_line.HasSwitch(switches::kEnableViewportMeta); 472 command_line.HasSwitch(switches::kEnableViewportMeta);
472 473
473 prefs.viewport_enabled = 474 prefs.viewport_enabled =
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 FrameTree* frame_tree = delegate_->GetFrameTree(); 1681 FrameTree* frame_tree = delegate_->GetFrameTree();
1681 1682
1682 frame_tree->ResetForMainFrameSwap(); 1683 frame_tree->ResetForMainFrameSwap();
1683 } 1684 }
1684 1685
1685 void RenderViewHostImpl::SelectWordAroundCaret() { 1686 void RenderViewHostImpl::SelectWordAroundCaret() {
1686 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1687 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1687 } 1688 }
1688 1689
1689 } // namespace content 1690 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/net/browser_online_state_observer.cc ('k') | content/common/p2p_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698