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

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

Issue 567923002: Refactoring the weak_ptr_factory order in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 (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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 enabled_bindings_(0), 186 enabled_bindings_(0),
187 page_id_(-1), 187 page_id_(-1),
188 main_frame_routing_id_(main_frame_routing_id), 188 main_frame_routing_id_(main_frame_routing_id),
189 run_modal_reply_msg_(NULL), 189 run_modal_reply_msg_(NULL),
190 run_modal_opener_id_(MSG_ROUTING_NONE), 190 run_modal_opener_id_(MSG_ROUTING_NONE),
191 is_waiting_for_beforeunload_ack_(false), 191 is_waiting_for_beforeunload_ack_(false),
192 unload_ack_is_for_cross_site_transition_(false), 192 unload_ack_is_for_cross_site_transition_(false),
193 sudden_termination_allowed_(false), 193 sudden_termination_allowed_(false),
194 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING), 194 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING),
195 virtual_keyboard_requested_(false), 195 virtual_keyboard_requested_(false),
196 weak_factory_(this),
197 is_focused_element_editable_(false), 196 is_focused_element_editable_(false),
198 updating_web_preferences_(false) { 197 updating_web_preferences_(false),
198 weak_factory_(this) {
199 DCHECK(instance_.get()); 199 DCHECK(instance_.get());
200 CHECK(delegate_); // http://crbug.com/82827 200 CHECK(delegate_); // http://crbug.com/82827
201 201
202 GetProcess()->EnableSendQueue(); 202 GetProcess()->EnableSendQueue();
203 203
204 if (swapped_out) { 204 if (swapped_out) {
205 rvh_state_ = STATE_SWAPPED_OUT; 205 rvh_state_ = STATE_SWAPPED_OUT;
206 } else { 206 } else {
207 rvh_state_ = STATE_DEFAULT; 207 rvh_state_ = STATE_DEFAULT;
208 instance_->increment_active_view_count(); 208 instance_->increment_active_view_count();
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 FrameTree* frame_tree = delegate_->GetFrameTree(); 1512 FrameTree* frame_tree = delegate_->GetFrameTree();
1513 1513
1514 frame_tree->ResetForMainFrameSwap(); 1514 frame_tree->ResetForMainFrameSwap();
1515 } 1515 }
1516 1516
1517 void RenderViewHostImpl::SelectWordAroundCaret() { 1517 void RenderViewHostImpl::SelectWordAroundCaret() {
1518 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1518 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1519 } 1519 }
1520 1520
1521 } // namespace content 1521 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698