OLD | NEW |
---|---|
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 <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
491 } | 491 } |
492 | 492 |
493 FOR_EACH_OBSERVER(WebContentsObserver, | 493 FOR_EACH_OBSERVER(WebContentsObserver, |
494 observers_, | 494 observers_, |
495 RenderViewDeleted(root->current_host())); | 495 RenderViewDeleted(root->current_host())); |
496 | 496 |
497 FOR_EACH_OBSERVER(WebContentsObserver, | 497 FOR_EACH_OBSERVER(WebContentsObserver, |
498 observers_, | 498 observers_, |
499 WebContentsDestroyed()); | 499 WebContentsDestroyed()); |
500 | 500 |
501 FOR_EACH_OBSERVER(WebContentsObserver, | 501 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
502 observers_, | 502 WebContentsDestroyed(this)); |
503 ResetWebContents()); | 503 |
504 FOR_EACH_OBSERVER(WebContentsObserver, observers_, ResetWebContents()); | |
Avi (use Gerrit)
2016/01/07 01:22:33
No.
GeorgeZ
2016/01/07 22:35:31
Undo and removed.
| |
504 | 505 |
505 SetDelegate(NULL); | 506 SetDelegate(NULL); |
506 | 507 |
507 STLDeleteContainerPairSecondPointers(destruction_observers_.begin(), | 508 STLDeleteContainerPairSecondPointers(destruction_observers_.begin(), |
508 destruction_observers_.end()); | 509 destruction_observers_.end()); |
509 } | 510 } |
510 | 511 |
511 WebContentsImpl* WebContentsImpl::CreateWithOpener( | 512 WebContentsImpl* WebContentsImpl::CreateWithOpener( |
512 const WebContents::CreateParams& params, | 513 const WebContents::CreateParams& params, |
513 FrameTreeNode* opener) { | 514 FrameTreeNode* opener) { |
(...skipping 4207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4721 const WebContentsObserver::MediaPlayerId& id) { | 4722 const WebContentsObserver::MediaPlayerId& id) { |
4722 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); | 4723 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); |
4723 } | 4724 } |
4724 | 4725 |
4725 void WebContentsImpl::MediaStoppedPlaying( | 4726 void WebContentsImpl::MediaStoppedPlaying( |
4726 const WebContentsObserver::MediaPlayerId& id) { | 4727 const WebContentsObserver::MediaPlayerId& id) { |
4727 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); | 4728 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); |
4728 } | 4729 } |
4729 | 4730 |
4730 } // namespace content | 4731 } // namespace content |
OLD | NEW |