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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10384128: Quote WebPreferences in namespace webkit_glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2012 Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/view_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/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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 using content::ResourceDispatcherHostImpl; 148 using content::ResourceDispatcherHostImpl;
149 using content::SSLStatus; 149 using content::SSLStatus;
150 using content::SessionStorageNamespace; 150 using content::SessionStorageNamespace;
151 using content::SiteInstance; 151 using content::SiteInstance;
152 using content::UserMetricsAction; 152 using content::UserMetricsAction;
153 using content::WebContents; 153 using content::WebContents;
154 using content::WebContentsObserver; 154 using content::WebContentsObserver;
155 using content::WebUI; 155 using content::WebUI;
156 using content::WebUIController; 156 using content::WebUIController;
157 using content::WebUIControllerFactory; 157 using content::WebUIControllerFactory;
158 using webkit_glue::WebPreferences;
158 159
159 namespace { 160 namespace {
160 161
161 // Amount of time we wait between when a key event is received and the renderer 162 // Amount of time we wait between when a key event is received and the renderer
162 // is queried for its state and pushed to the NavigationEntry. 163 // is queried for its state and pushed to the NavigationEntry.
163 const int kQueryStateDelay = 5000; 164 const int kQueryStateDelay = 5000;
164 165
165 const int kSyncWaitDelay = 40; 166 const int kSyncWaitDelay = 40;
166 167
167 const char kDotGoogleDotCom[] = ".google.com"; 168 const char kDotGoogleDotCom[] = ".google.com";
(...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2729 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2730 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2730 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2731 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2731 // Can be NULL during tests. 2732 // Can be NULL during tests.
2732 if (rwh_view) 2733 if (rwh_view)
2733 rwh_view->SetSize(GetView()->GetContainerSize()); 2734 rwh_view->SetSize(GetView()->GetContainerSize());
2734 } 2735 }
2735 2736
2736 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { 2737 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() {
2737 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); 2738 return static_cast<RenderViewHostImpl*>(GetRenderViewHost());
2738 } 2739 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698