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

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

Issue 737353003: Fix WeakPtrFactory member ordering in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolved typo Created 6 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
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 render_view_message_source_(NULL), 325 render_view_message_source_(NULL),
326 fullscreen_widget_routing_id_(MSG_ROUTING_NONE), 326 fullscreen_widget_routing_id_(MSG_ROUTING_NONE),
327 fullscreen_widget_had_focus_at_shutdown_(false), 327 fullscreen_widget_had_focus_at_shutdown_(false),
328 is_subframe_(false), 328 is_subframe_(false),
329 force_disable_overscroll_content_(false), 329 force_disable_overscroll_content_(false),
330 last_dialog_suppressed_(false), 330 last_dialog_suppressed_(false),
331 geolocation_service_context_(new GeolocationServiceContext()), 331 geolocation_service_context_(new GeolocationServiceContext()),
332 accessibility_mode_( 332 accessibility_mode_(
333 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()), 333 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()),
334 audio_stream_monitor_(this), 334 audio_stream_monitor_(this),
335 virtual_keyboard_requested_(false),
335 loading_weak_factory_(this) { 336 loading_weak_factory_(this) {
336 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++) 337 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++)
337 g_created_callbacks.Get().at(i).Run(this); 338 g_created_callbacks.Get().at(i).Run(this);
338 frame_tree_.SetFrameRemoveListener( 339 frame_tree_.SetFrameRemoveListener(
339 base::Bind(&WebContentsImpl::OnFrameRemoved, 340 base::Bind(&WebContentsImpl::OnFrameRemoved,
340 base::Unretained(this))); 341 base::Unretained(this)));
341 } 342 }
342 343
343 WebContentsImpl::~WebContentsImpl() { 344 WebContentsImpl::~WebContentsImpl() {
344 is_being_destroyed_ = true; 345 is_being_destroyed_ = true;
(...skipping 4007 matching lines...) Expand 10 before | Expand all | Expand 10 after
4352 node->render_manager()->ResumeResponseDeferredAtStart(); 4353 node->render_manager()->ResumeResponseDeferredAtStart();
4353 } 4354 }
4354 4355
4355 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4356 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4356 force_disable_overscroll_content_ = force_disable; 4357 force_disable_overscroll_content_ = force_disable;
4357 if (view_) 4358 if (view_)
4358 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4359 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4359 } 4360 }
4360 4361
4361 } // namespace content 4362 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/renderer/scheduler/task_queue_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698