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

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

Issue 1545973002: Remove the is_loading_ field from WebContentsImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + addressed Nasko's nits Created 4 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 (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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 render_view_host_delegate_view_(NULL), 331 render_view_host_delegate_view_(NULL),
332 created_with_opener_(false), 332 created_with_opener_(false),
333 #if defined(OS_WIN) 333 #if defined(OS_WIN)
334 accessible_parent_(NULL), 334 accessible_parent_(NULL),
335 #endif 335 #endif
336 frame_tree_(new NavigatorImpl(&controller_, this), 336 frame_tree_(new NavigatorImpl(&controller_, this),
337 this, 337 this,
338 this, 338 this,
339 this, 339 this,
340 this), 340 this),
341 is_loading_(false),
342 is_load_to_different_document_(false), 341 is_load_to_different_document_(false),
343 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING), 342 crashed_status_(base::TERMINATION_STATUS_STILL_RUNNING),
344 crashed_error_code_(0), 343 crashed_error_code_(0),
345 waiting_for_response_(false), 344 waiting_for_response_(false),
346 load_state_(net::LOAD_STATE_IDLE, base::string16()), 345 load_state_(net::LOAD_STATE_IDLE, base::string16()),
347 upload_size_(0), 346 upload_size_(0),
348 upload_position_(0), 347 upload_position_(0),
349 is_resume_pending_(false), 348 is_resume_pending_(false),
349 paused_throbber_for_interstitial_(false),
350 displayed_insecure_content_(false), 350 displayed_insecure_content_(false),
351 has_accessed_initial_document_(false), 351 has_accessed_initial_document_(false),
352 theme_color_(SK_ColorTRANSPARENT), 352 theme_color_(SK_ColorTRANSPARENT),
353 last_sent_theme_color_(SK_ColorTRANSPARENT), 353 last_sent_theme_color_(SK_ColorTRANSPARENT),
354 did_first_visually_non_empty_paint_(false), 354 did_first_visually_non_empty_paint_(false),
355 capturer_count_(0), 355 capturer_count_(0),
356 should_normally_be_visible_(true), 356 should_normally_be_visible_(true),
357 is_being_destroyed_(false), 357 is_being_destroyed_(false),
358 notify_disconnection_(false), 358 notify_disconnection_(false),
359 dialog_manager_(NULL), 359 dialog_manager_(NULL),
360 is_showing_before_unload_dialog_(false), 360 is_showing_before_unload_dialog_(false),
361 last_active_time_(base::TimeTicks::Now()), 361 last_active_time_(base::TimeTicks::Now()),
362 closed_by_user_gesture_(false), 362 closed_by_user_gesture_(false),
363 minimum_zoom_percent_(static_cast<int>(kMinimumZoomFactor * 100)), 363 minimum_zoom_percent_(static_cast<int>(kMinimumZoomFactor * 100)),
364 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)), 364 maximum_zoom_percent_(static_cast<int>(kMaximumZoomFactor * 100)),
365 zoom_scroll_remainder_(0), 365 zoom_scroll_remainder_(0),
366 render_view_message_source_(NULL), 366 render_view_message_source_(NULL),
367 render_frame_message_source_(NULL), 367 render_frame_message_source_(NULL),
368 fullscreen_widget_routing_id_(MSG_ROUTING_NONE), 368 fullscreen_widget_routing_id_(MSG_ROUTING_NONE),
369 fullscreen_widget_had_focus_at_shutdown_(false), 369 fullscreen_widget_had_focus_at_shutdown_(false),
370 is_subframe_(false), 370 is_subframe_(false),
371 force_disable_overscroll_content_(false), 371 force_disable_overscroll_content_(false),
372 last_dialog_suppressed_(false), 372 last_dialog_suppressed_(false),
373 geolocation_service_context_(new GeolocationServiceContext()), 373 geolocation_service_context_(new GeolocationServiceContext()),
374 accessibility_mode_( 374 accessibility_mode_(BrowserAccessibilityStateImpl::GetInstance()
375 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode()), 375 ->accessibility_mode()),
376 audio_stream_monitor_(this), 376 audio_stream_monitor_(this),
377 virtual_keyboard_requested_(false), 377 virtual_keyboard_requested_(false),
378 page_scale_factor_is_one_(true), 378 page_scale_factor_is_one_(true),
379 loading_weak_factory_(this) { 379 loading_weak_factory_(this) {
380 frame_tree_.SetFrameRemoveListener( 380 frame_tree_.SetFrameRemoveListener(
381 base::Bind(&WebContentsImpl::OnFrameRemoved, 381 base::Bind(&WebContentsImpl::OnFrameRemoved,
382 base::Unretained(this))); 382 base::Unretained(this)));
383 #if defined(OS_ANDROID) 383 #if defined(OS_ANDROID)
384 media_web_contents_observer_.reset(new MediaWebContentsObserverAndroid(this)); 384 media_web_contents_observer_.reset(new MediaWebContentsObserverAndroid(this));
385 #else 385 #else
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 renderer_preferences_.user_agent_override = override; 889 renderer_preferences_.user_agent_override = override;
890 890
891 // Send the new override string to the renderer. 891 // Send the new override string to the renderer.
892 RenderViewHost* host = GetRenderViewHost(); 892 RenderViewHost* host = GetRenderViewHost();
893 if (host) 893 if (host)
894 host->SyncRendererPrefs(); 894 host->SyncRendererPrefs();
895 895
896 // Reload the page if a load is currently in progress to avoid having 896 // Reload the page if a load is currently in progress to avoid having
897 // different parts of the page loaded using different user agents. 897 // different parts of the page loaded using different user agents.
898 NavigationEntry* entry = controller_.GetVisibleEntry(); 898 NavigationEntry* entry = controller_.GetVisibleEntry();
899 if (is_loading_ && entry != NULL && entry->GetIsOverridingUserAgent()) 899 if (IsLoading() && entry != NULL && entry->GetIsOverridingUserAgent())
900 controller_.ReloadIgnoringCache(true); 900 controller_.ReloadIgnoringCache(true);
901 901
902 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 902 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
903 UserAgentOverrideSet(override)); 903 UserAgentOverrideSet(override));
904 } 904 }
905 905
906 const std::string& WebContentsImpl::GetUserAgentOverride() const { 906 const std::string& WebContentsImpl::GetUserAgentOverride() const {
907 return renderer_preferences_.user_agent_override; 907 return renderer_preferences_.user_agent_override;
908 } 908 }
909 909
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 1029
1030 SiteInstanceImpl* WebContentsImpl::GetPendingSiteInstance() const { 1030 SiteInstanceImpl* WebContentsImpl::GetPendingSiteInstance() const {
1031 RenderViewHostImpl* dest_rvh = 1031 RenderViewHostImpl* dest_rvh =
1032 GetRenderManager()->pending_render_view_host() ? 1032 GetRenderManager()->pending_render_view_host() ?
1033 GetRenderManager()->pending_render_view_host() : 1033 GetRenderManager()->pending_render_view_host() :
1034 GetRenderManager()->current_host(); 1034 GetRenderManager()->current_host();
1035 return dest_rvh->GetSiteInstance(); 1035 return dest_rvh->GetSiteInstance();
1036 } 1036 }
1037 1037
1038 bool WebContentsImpl::IsLoading() const { 1038 bool WebContentsImpl::IsLoading() const {
1039 return is_loading_; 1039 return frame_tree_.IsLoading() && !paused_throbber_for_interstitial_;
1040 } 1040 }
1041 1041
1042 bool WebContentsImpl::IsLoadingToDifferentDocument() const { 1042 bool WebContentsImpl::IsLoadingToDifferentDocument() const {
1043 return is_loading_ && is_load_to_different_document_; 1043 return IsLoading() && is_load_to_different_document_;
1044 } 1044 }
1045 1045
1046 bool WebContentsImpl::IsWaitingForResponse() const { 1046 bool WebContentsImpl::IsWaitingForResponse() const {
1047 return waiting_for_response_ && is_load_to_different_document_; 1047 return waiting_for_response_ && is_load_to_different_document_;
1048 } 1048 }
1049 1049
1050 const net::LoadStateWithParam& WebContentsImpl::GetLoadState() const { 1050 const net::LoadStateWithParam& WebContentsImpl::GetLoadState() const {
1051 return load_state_; 1051 return load_state_;
1052 } 1052 }
1053 1053
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
2302 InterstitialPageImpl* interstitial_page) { 2302 InterstitialPageImpl* interstitial_page) {
2303 DCHECK(interstitial_page); 2303 DCHECK(interstitial_page);
2304 GetRenderManager()->set_interstitial_page(interstitial_page); 2304 GetRenderManager()->set_interstitial_page(interstitial_page);
2305 2305
2306 // Cancel any visible dialogs so that they don't interfere with the 2306 // Cancel any visible dialogs so that they don't interfere with the
2307 // interstitial. 2307 // interstitial.
2308 CancelActiveAndPendingDialogs(); 2308 CancelActiveAndPendingDialogs();
2309 2309
2310 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 2310 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
2311 DidAttachInterstitialPage()); 2311 DidAttachInterstitialPage());
2312
2313 // Stop the throbber if needed while the interstitial page is shown.
2314 if (IsLoading())
2315 LoadingStateChanged(false, true, true, nullptr);
2316 }
2317
2318 void WebContentsImpl::DidProceedOnInterstitial() {
2319 // Restart the throbber now that the interstitial page is going away.
2320 if (paused_throbber_for_interstitial_) {
2321 if (frame_tree_.IsLoading())
2322 LoadingStateChanged(true, true, false, nullptr);
2323 }
2312 } 2324 }
2313 2325
2314 void WebContentsImpl::DetachInterstitialPage() { 2326 void WebContentsImpl::DetachInterstitialPage() {
2315 if (ShowingInterstitialPage()) 2327 if (ShowingInterstitialPage())
2316 GetRenderManager()->remove_interstitial_page(); 2328 GetRenderManager()->remove_interstitial_page();
2317 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 2329 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
2318 DidDetachInterstitialPage()); 2330 DidDetachInterstitialPage());
2331 // Restart the throbber now that the interstitial page is going away.
2332 if (paused_throbber_for_interstitial_) {
2333 if (frame_tree_.IsLoading())
2334 LoadingStateChanged(true, true, false, nullptr);
2335 }
2319 } 2336 }
2320 2337
2321 void WebContentsImpl::SetHistoryOffsetAndLength(int history_offset, 2338 void WebContentsImpl::SetHistoryOffsetAndLength(int history_offset,
2322 int history_length) { 2339 int history_length) {
2323 SetHistoryOffsetAndLengthForView( 2340 SetHistoryOffsetAndLengthForView(
2324 GetRenderViewHost(), history_offset, history_length); 2341 GetRenderViewHost(), history_offset, history_length);
2325 } 2342 }
2326 2343
2327 void WebContentsImpl::SetHistoryOffsetAndLengthForView( 2344 void WebContentsImpl::SetHistoryOffsetAndLengthForView(
2328 RenderViewHost* render_view_host, 2345 RenderViewHost* render_view_host,
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after
3581 if (delegate_) 3598 if (delegate_)
3582 delegate_->ShowRepostFormWarningDialog(this); 3599 delegate_->ShowRepostFormWarningDialog(this);
3583 } 3600 }
3584 3601
3585 bool WebContentsImpl::HasAccessedInitialDocument() { 3602 bool WebContentsImpl::HasAccessedInitialDocument() {
3586 return has_accessed_initial_document_; 3603 return has_accessed_initial_document_;
3587 } 3604 }
3588 3605
3589 // Notifies the RenderWidgetHost instance about the fact that the page is 3606 // Notifies the RenderWidgetHost instance about the fact that the page is
3590 // loading, or done loading. 3607 // loading, or done loading.
3591 void WebContentsImpl::SetIsLoading(bool is_loading, 3608 void WebContentsImpl::LoadingStateChanged(bool is_loading,
3592 bool to_different_document, 3609 bool to_different_document,
3593 LoadNotificationDetails* details) { 3610 bool pause_throbber_for_interstitial,
3594 if (is_loading == is_loading_) 3611 LoadNotificationDetails* details) {
3612 // Do not send notifications about loading while the interstitial is showing.
3613 if (paused_throbber_for_interstitial_ && pause_throbber_for_interstitial)
3595 return; 3614 return;
3596 3615
3616 // Update whether the interstitial state.
3617 paused_throbber_for_interstitial_ = pause_throbber_for_interstitial;
3618
3597 if (!is_loading) { 3619 if (!is_loading) {
3598 load_state_ = net::LoadStateWithParam(net::LOAD_STATE_IDLE, 3620 load_state_ = net::LoadStateWithParam(net::LOAD_STATE_IDLE,
3599 base::string16()); 3621 base::string16());
3600 load_state_host_.clear(); 3622 load_state_host_.clear();
3601 upload_size_ = 0; 3623 upload_size_ = 0;
3602 upload_position_ = 0; 3624 upload_position_ = 0;
3603 } 3625 }
3604 3626
3605 GetRenderManager()->SetIsLoading(is_loading); 3627 GetRenderManager()->SetIsLoading(is_loading);
3606 3628
3607 is_loading_ = is_loading;
3608 waiting_for_response_ = is_loading; 3629 waiting_for_response_ = is_loading;
3609 is_load_to_different_document_ = to_different_document; 3630 is_load_to_different_document_ = to_different_document;
3610 3631
3611 if (delegate_) 3632 if (delegate_)
3612 delegate_->LoadingStateChanged(this, to_different_document); 3633 delegate_->LoadingStateChanged(this, to_different_document);
3613 NotifyNavigationStateChanged(INVALIDATE_TYPE_LOAD); 3634 NotifyNavigationStateChanged(INVALIDATE_TYPE_LOAD);
3614 3635
3615 std::string url = (details ? details->url.possibly_invalid_spec() : "NULL"); 3636 std::string url = (details ? details->url.possibly_invalid_spec() : "NULL");
3616 if (is_loading) { 3637 if (is_loading) {
3617 TRACE_EVENT_ASYNC_BEGIN2("browser,navigation", "WebContentsImpl Loading", 3638 TRACE_EVENT_ASYNC_BEGIN2("browser,navigation", "WebContentsImpl Loading",
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
3950 // renderer may not have made a clean exit. 3971 // renderer may not have made a clean exit.
3951 if (IsFullscreenForCurrentTab(GetRenderViewHost()->GetWidget())) 3972 if (IsFullscreenForCurrentTab(GetRenderViewHost()->GetWidget()))
3952 ExitFullscreenMode(false); 3973 ExitFullscreenMode(false);
3953 3974
3954 // Cancel any visible dialogs so they are not left dangling over the sad tab. 3975 // Cancel any visible dialogs so they are not left dangling over the sad tab.
3955 CancelActiveAndPendingDialogs(); 3976 CancelActiveAndPendingDialogs();
3956 3977
3957 if (delegate_) 3978 if (delegate_)
3958 delegate_->HideValidationMessage(this); 3979 delegate_->HideValidationMessage(this);
3959 3980
3960 SetIsLoading(false, true, nullptr);
3961 NotifyDisconnected();
3962 SetIsCrashed(status, error_code);
3963
3964 // Reset the loading progress. TODO(avi): What does it mean to have a 3981 // Reset the loading progress. TODO(avi): What does it mean to have a
3965 // "renderer crash" when there is more than one renderer process serving a 3982 // "renderer crash" when there is more than one renderer process serving a
3966 // webpage? Once this function is called at a more granular frame level, we 3983 // webpage? Once this function is called at a more granular frame level, we
3967 // probably will need to more granularly reset the state here. 3984 // probably will need to more granularly reset the state here.
3968 ResetLoadProgressState(); 3985 ResetLoadProgressState();
3986 NotifyDisconnected();
3987 SetIsCrashed(status, error_code);
3969 3988
3970 FOR_EACH_OBSERVER(WebContentsObserver, 3989 FOR_EACH_OBSERVER(WebContentsObserver,
3971 observers_, 3990 observers_,
3972 RenderProcessGone(GetCrashedStatus())); 3991 RenderProcessGone(GetCrashedStatus()));
3973 } 3992 }
3974 3993
3975 void WebContentsImpl::RenderViewDeleted(RenderViewHost* rvh) { 3994 void WebContentsImpl::RenderViewDeleted(RenderViewHost* rvh) {
3976 FOR_EACH_OBSERVER(WebContentsObserver, observers_, RenderViewDeleted(rvh)); 3995 FOR_EACH_OBSERVER(WebContentsObserver, observers_, RenderViewDeleted(rvh));
3977 } 3996 }
3978 3997
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
4052 delegate_->SwappedOut(this); 4071 delegate_->SwappedOut(this);
4053 } 4072 }
4054 4073
4055 void WebContentsImpl::RequestMove(const gfx::Rect& new_bounds) { 4074 void WebContentsImpl::RequestMove(const gfx::Rect& new_bounds) {
4056 if (delegate_ && delegate_->IsPopupOrPanel(this)) 4075 if (delegate_ && delegate_->IsPopupOrPanel(this))
4057 delegate_->MoveContents(this, new_bounds); 4076 delegate_->MoveContents(this, new_bounds);
4058 } 4077 }
4059 4078
4060 void WebContentsImpl::DidStartLoading(FrameTreeNode* frame_tree_node, 4079 void WebContentsImpl::DidStartLoading(FrameTreeNode* frame_tree_node,
4061 bool to_different_document) { 4080 bool to_different_document) {
4062 SetIsLoading(true, to_different_document, nullptr); 4081 LoadingStateChanged(true, to_different_document,
4082 paused_throbber_for_interstitial_, nullptr);
4063 4083
4064 // Notify accessibility that the user is navigating away from the 4084 // Notify accessibility that the user is navigating away from the
4065 // current document. 4085 // current document.
4066 // 4086 //
4067 // TODO(dmazzoni): do this using a WebContentsObserver. 4087 // TODO(dmazzoni): do this using a WebContentsObserver.
4068 BrowserAccessibilityManager* manager = 4088 BrowserAccessibilityManager* manager =
4069 frame_tree_node->current_frame_host()->browser_accessibility_manager(); 4089 frame_tree_node->current_frame_host()->browser_accessibility_manager();
4070 if (manager) 4090 if (manager)
4071 manager->UserIsNavigatingAway(); 4091 manager->UserIsNavigatingAway();
4072 } 4092 }
(...skipping 13 matching lines...) Expand all
4086 base::TimeTicks::Now() - navigator->GetCurrentLoadStart(); 4106 base::TimeTicks::Now() - navigator->GetCurrentLoadStart();
4087 4107
4088 details.reset(new LoadNotificationDetails( 4108 details.reset(new LoadNotificationDetails(
4089 entry->GetVirtualURL(), 4109 entry->GetVirtualURL(),
4090 entry->GetTransitionType(), 4110 entry->GetTransitionType(),
4091 elapsed, 4111 elapsed,
4092 &controller_, 4112 &controller_,
4093 controller_.GetCurrentEntryIndex())); 4113 controller_.GetCurrentEntryIndex()));
4094 } 4114 }
4095 4115
4096 SetIsLoading(false, true, details.get()); 4116 LoadingStateChanged(false, true, paused_throbber_for_interstitial_,
4117 details.get());
4097 } 4118 }
4098 4119
4099 void WebContentsImpl::DidChangeLoadProgress() { 4120 void WebContentsImpl::DidChangeLoadProgress() {
4100 double load_progress = frame_tree_.load_progress(); 4121 double load_progress = frame_tree_.load_progress();
4101 4122
4102 // The delegate is notified immediately for the first and last updates. Also, 4123 // The delegate is notified immediately for the first and last updates. Also,
4103 // since the message loop may be pretty busy when a page is loaded, it might 4124 // since the message loop may be pretty busy when a page is loaded, it might
4104 // not execute a posted task in a timely manner so the progress report is sent 4125 // not execute a posted task in a timely manner so the progress report is sent
4105 // immediately if enough time has passed. 4126 // immediately if enough time has passed.
4106 base::TimeDelta min_delay = 4127 base::TimeDelta min_delay =
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
4623 int render_frame_id, 4644 int render_frame_id,
4624 IPC::Message* reply_msg, 4645 IPC::Message* reply_msg,
4625 bool dialog_was_suppressed, 4646 bool dialog_was_suppressed,
4626 bool success, 4647 bool success,
4627 const base::string16& user_input) { 4648 const base::string16& user_input) {
4628 RenderFrameHostImpl* rfh = RenderFrameHostImpl::FromID(render_process_id, 4649 RenderFrameHostImpl* rfh = RenderFrameHostImpl::FromID(render_process_id,
4629 render_frame_id); 4650 render_frame_id);
4630 last_dialog_suppressed_ = dialog_was_suppressed; 4651 last_dialog_suppressed_ = dialog_was_suppressed;
4631 4652
4632 if (is_showing_before_unload_dialog_ && !success) { 4653 if (is_showing_before_unload_dialog_ && !success) {
4633 // If a beforeunload dialog is canceled, we need to stop the throbber from
4634 // spinning, since we forced it to start spinning in Navigate.
4635 if (rfh) 4654 if (rfh)
4636 DidStopLoading(); 4655 rfh->frame_tree_node()->BeforeUnloadCanceled();
4637 controller_.DiscardNonCommittedEntries(); 4656 controller_.DiscardNonCommittedEntries();
4638 4657
4639 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 4658 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
4640 BeforeUnloadDialogCancelled()); 4659 BeforeUnloadDialogCancelled());
4641 } 4660 }
4642 4661
4643 is_showing_before_unload_dialog_ = false; 4662 is_showing_before_unload_dialog_ = false;
4644 if (rfh) { 4663 if (rfh) {
4645 rfh->JavaScriptDialogClosed(reply_msg, success, user_input, 4664 rfh->JavaScriptDialogClosed(reply_msg, success, user_input,
4646 dialog_was_suppressed); 4665 dialog_was_suppressed);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
4752 const WebContentsObserver::MediaPlayerId& id) { 4771 const WebContentsObserver::MediaPlayerId& id) {
4753 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); 4772 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id));
4754 } 4773 }
4755 4774
4756 void WebContentsImpl::MediaStoppedPlaying( 4775 void WebContentsImpl::MediaStoppedPlaying(
4757 const WebContentsObserver::MediaPlayerId& id) { 4776 const WebContentsObserver::MediaPlayerId& id) {
4758 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); 4777 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id));
4759 } 4778 }
4760 4779
4761 } // namespace content 4780 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698