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

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

Issue 1432143002: Track where WebContents are created in order to better understand issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Same as Patch Set 3 Created 5 years 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/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.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/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 2865 matching lines...) Expand 10 before | Expand all | Expand 10 after
2876 2876
2877 // Resume blocked requests for both the RenderViewHost and RenderFrameHost. 2877 // Resume blocked requests for both the RenderViewHost and RenderFrameHost.
2878 // TODO(brettw): It seems bogus to reach into here and initialize the host. 2878 // TODO(brettw): It seems bogus to reach into here and initialize the host.
2879 if (is_resume_pending_) { 2879 if (is_resume_pending_) {
2880 is_resume_pending_ = false; 2880 is_resume_pending_ = false;
2881 GetRenderViewHost()->GetWidget()->Init(); 2881 GetRenderViewHost()->GetWidget()->Init();
2882 GetMainFrame()->Init(); 2882 GetMainFrame()->Init();
2883 } 2883 }
2884 } 2884 }
2885 2885
2886 base::debug::StackTrace WebContentsImpl::stack_trace() {
2887 return stack_trace_;
2888 }
2889
2886 bool WebContentsImpl::FocusLocationBarByDefault() { 2890 bool WebContentsImpl::FocusLocationBarByDefault() {
2887 NavigationEntry* entry = controller_.GetVisibleEntry(); 2891 NavigationEntry* entry = controller_.GetVisibleEntry();
2888 if (entry && entry->GetURL() == GURL(url::kAboutBlankURL)) 2892 if (entry && entry->GetURL() == GURL(url::kAboutBlankURL))
2889 return true; 2893 return true;
2890 return delegate_ && delegate_->ShouldFocusLocationBarByDefault(this); 2894 return delegate_ && delegate_->ShouldFocusLocationBarByDefault(this);
2891 } 2895 }
2892 2896
2893 void WebContentsImpl::SetFocusToLocationBar(bool select_all) { 2897 void WebContentsImpl::SetFocusToLocationBar(bool select_all) {
2894 if (delegate_) 2898 if (delegate_)
2895 delegate_->SetFocusToLocationBar(select_all); 2899 delegate_->SetFocusToLocationBar(select_all);
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after
4844 return NULL; 4848 return NULL;
4845 } 4849 }
4846 4850
4847 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4851 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4848 force_disable_overscroll_content_ = force_disable; 4852 force_disable_overscroll_content_ = force_disable;
4849 if (view_) 4853 if (view_)
4850 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4854 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4851 } 4855 }
4852 4856
4853 } // namespace content 4857 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698