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

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

Issue 853083003: Try to test a theoretical problem: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | content/browser/web_contents/web_contents_impl_browsertest.cc » ('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/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after
2734 RenderFrameHostImpl* rfh = 2734 RenderFrameHostImpl* rfh =
2735 static_cast<RenderFrameHostImpl*>(render_frame_message_source_); 2735 static_cast<RenderFrameHostImpl*>(render_frame_message_source_);
2736 FOR_EACH_OBSERVER( 2736 FOR_EACH_OBSERVER(
2737 WebContentsObserver, observers_, DidFinishLoad(rfh, validated_url)); 2737 WebContentsObserver, observers_, DidFinishLoad(rfh, validated_url));
2738 } 2738 }
2739 2739
2740 void WebContentsImpl::OnDidStartLoading(bool to_different_document) { 2740 void WebContentsImpl::OnDidStartLoading(bool to_different_document) {
2741 RenderFrameHostImpl* rfh = 2741 RenderFrameHostImpl* rfh =
2742 static_cast<RenderFrameHostImpl*>(render_frame_message_source_); 2742 static_cast<RenderFrameHostImpl*>(render_frame_message_source_);
2743 int64 render_frame_id = rfh->frame_tree_node()->frame_tree_node_id(); 2743 int64 render_frame_id = rfh->frame_tree_node()->frame_tree_node_id();
2744 DLOG(INFO) << "WCI::OnDidStartLoading for " << rfh->GetSiteInstance()->GetSite URL();
2744 2745
2745 // Any main frame load to a new document should reset the load progress, since 2746 // Any main frame load to a new document should reset the load progress, since
2746 // it will replace the current page and any frames. 2747 // it will replace the current page and any frames.
2747 if (to_different_document && !rfh->GetParent()) { 2748 if (to_different_document && !rfh->GetParent()) {
2748 ResetLoadProgressState(); 2749 ResetLoadProgressState();
2749 loading_frames_in_progress_ = 0; 2750 loading_frames_in_progress_ = 0;
2750 } 2751 }
2751 2752
2752 // It is possible to get multiple calls to OnDidStartLoading that don't have 2753 // It is possible to get multiple calls to OnDidStartLoading that don't have
2753 // corresponding calls to OnDidStopLoading: 2754 // corresponding calls to OnDidStopLoading:
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
4381 node->render_manager()->ResumeResponseDeferredAtStart(); 4382 node->render_manager()->ResumeResponseDeferredAtStart();
4382 } 4383 }
4383 4384
4384 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4385 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4385 force_disable_overscroll_content_ = force_disable; 4386 force_disable_overscroll_content_ = force_disable;
4386 if (view_) 4387 if (view_)
4387 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4388 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4388 } 4389 }
4389 4390
4390 } // namespace content 4391 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698