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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2655393004: Make ResourceScheduler work in OOPIF (Closed)
Patch Set: Add tests Created 3 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 4511 matching lines...) Expand 10 before | Expand all | Expand 10 after
4522 void RenderFrameImpl::didChangeScrollOffset(blink::WebLocalFrame* frame) { 4522 void RenderFrameImpl::didChangeScrollOffset(blink::WebLocalFrame* frame) {
4523 DCHECK_EQ(frame_, frame); 4523 DCHECK_EQ(frame_, frame);
4524 render_view_->StartNavStateSyncTimerIfNecessary(this); 4524 render_view_->StartNavStateSyncTimerIfNecessary(this);
4525 4525
4526 for (auto& observer : observers_) 4526 for (auto& observer : observers_)
4527 observer.DidChangeScrollOffset(); 4527 observer.DidChangeScrollOffset();
4528 } 4528 }
4529 4529
4530 void RenderFrameImpl::willInsertBody(blink::WebLocalFrame* frame) { 4530 void RenderFrameImpl::willInsertBody(blink::WebLocalFrame* frame) {
4531 DCHECK(!frame_ || frame_ == frame); 4531 DCHECK(!frame_ || frame_ == frame);
4532 if (!frame->parent()) { 4532 Send(new FrameHostMsg_WillInsertBody(routing_id_,
4533 render_view_->Send(new ViewHostMsg_WillInsertBody( 4533 render_view_->GetRoutingID()));
4534 render_view_->GetRoutingID()));
4535 }
4536 } 4534 }
4537 4535
4538 void RenderFrameImpl::reportFindInPageMatchCount(int request_id, 4536 void RenderFrameImpl::reportFindInPageMatchCount(int request_id,
4539 int count, 4537 int count,
4540 bool final_update) { 4538 bool final_update) {
4541 // -1 here means don't update the active match ordinal. 4539 // -1 here means don't update the active match ordinal.
4542 int active_match_ordinal = count ? -1 : 0; 4540 int active_match_ordinal = count ? -1 : 0;
4543 4541
4544 SendFindReply(request_id, count, active_match_ordinal, gfx::Rect(), 4542 SendFindReply(request_id, count, active_match_ordinal, gfx::Rect(),
4545 final_update); 4543 final_update);
(...skipping 2283 matching lines...) Expand 10 before | Expand all | Expand 10 after
6829 // event target. Potentially a Pepper plugin will receive the event. 6827 // event target. Potentially a Pepper plugin will receive the event.
6830 // In order to tell whether a plugin gets the last mouse event and which it 6828 // In order to tell whether a plugin gets the last mouse event and which it
6831 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6829 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6832 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6830 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6833 // |pepper_last_mouse_event_target_|. 6831 // |pepper_last_mouse_event_target_|.
6834 pepper_last_mouse_event_target_ = nullptr; 6832 pepper_last_mouse_event_target_ = nullptr;
6835 #endif 6833 #endif
6836 } 6834 }
6837 6835
6838 } // namespace content 6836 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698