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

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

Issue 23018005: Start renderer in ContentViewCoreImpl::EvaluateJavaScript. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 7 years, 4 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/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 3654 matching lines...) Expand 10 before | Expand all | Expand 10 after
3665 // linux. See crbug.com/83941. 3665 // linux. See crbug.com/83941.
3666 if (rwh_view) { 3666 if (rwh_view) {
3667 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost()) 3667 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost())
3668 render_widget_host->WasResized(); 3668 render_widget_host->WasResized();
3669 } 3669 }
3670 #endif 3670 #endif
3671 3671
3672 return true; 3672 return true;
3673 } 3673 }
3674 3674
3675 #if defined(OS_ANDROID)
3676 bool WebContentsImpl::CreateRenderViewForInitialEmptyDocument() {
3677 return CreateRenderViewForRenderManager(GetRenderViewHost(),
3678 MSG_ROUTING_NONE);
3679 }
3680 #endif
3681
3675 void WebContentsImpl::OnDialogClosed(RenderViewHost* rvh, 3682 void WebContentsImpl::OnDialogClosed(RenderViewHost* rvh,
3676 IPC::Message* reply_msg, 3683 IPC::Message* reply_msg,
3677 bool success, 3684 bool success,
3678 const string16& user_input) { 3685 const string16& user_input) {
3679 if (is_showing_before_unload_dialog_ && !success) { 3686 if (is_showing_before_unload_dialog_ && !success) {
3680 // If a beforeunload dialog is canceled, we need to stop the throbber from 3687 // If a beforeunload dialog is canceled, we need to stop the throbber from
3681 // spinning, since we forced it to start spinning in Navigate. 3688 // spinning, since we forced it to start spinning in Navigate.
3682 DidStopLoading(rvh); 3689 DidStopLoading(rvh);
3683 controller_.DiscardNonCommittedEntries(); 3690 controller_.DiscardNonCommittedEntries();
3684 3691
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
3737 } 3744 }
3738 3745
3739 void WebContentsImpl::ClearAllPowerSaveBlockers() { 3746 void WebContentsImpl::ClearAllPowerSaveBlockers() {
3740 for (PowerSaveBlockerMap::iterator i(power_save_blockers_.begin()); 3747 for (PowerSaveBlockerMap::iterator i(power_save_blockers_.begin());
3741 i != power_save_blockers_.end(); ++i) 3748 i != power_save_blockers_.end(); ++i)
3742 STLDeleteValues(&power_save_blockers_[i->first]); 3749 STLDeleteValues(&power_save_blockers_[i->first]);
3743 power_save_blockers_.clear(); 3750 power_save_blockers_.clear();
3744 } 3751 }
3745 3752
3746 } // namespace content 3753 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698