OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/frame_host/render_frame_host_manager.h" | 5 #include "content/browser/frame_host/render_frame_host_manager.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/logging.h" | 10 #include "base/logging.h" |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 new FrameMsg_DidStartLoading(pair.second->GetRoutingID())); | 818 new FrameMsg_DidStartLoading(pair.second->GetRoutingID())); |
819 } | 819 } |
820 } | 820 } |
821 | 821 |
822 void RenderFrameHostManager::OnDidStopLoading() { | 822 void RenderFrameHostManager::OnDidStopLoading() { |
823 for (const auto& pair : proxy_hosts_) { | 823 for (const auto& pair : proxy_hosts_) { |
824 pair.second->Send(new FrameMsg_DidStopLoading(pair.second->GetRoutingID())); | 824 pair.second->Send(new FrameMsg_DidStopLoading(pair.second->GetRoutingID())); |
825 } | 825 } |
826 } | 826 } |
827 | 827 |
| 828 void RenderFrameHostManager::OnDidUpdateName(const std::string& name) { |
| 829 for (const auto& pair : proxy_hosts_) { |
| 830 pair.second->Send( |
| 831 new FrameMsg_DidUpdateName(pair.second->GetRoutingID(), name)); |
| 832 } |
| 833 } |
| 834 |
828 void RenderFrameHostManager::Observe( | 835 void RenderFrameHostManager::Observe( |
829 int type, | 836 int type, |
830 const NotificationSource& source, | 837 const NotificationSource& source, |
831 const NotificationDetails& details) { | 838 const NotificationDetails& details) { |
832 switch (type) { | 839 switch (type) { |
833 case NOTIFICATION_RENDERER_PROCESS_CLOSED: | 840 case NOTIFICATION_RENDERER_PROCESS_CLOSED: |
834 case NOTIFICATION_RENDERER_PROCESS_CLOSING: | 841 case NOTIFICATION_RENDERER_PROCESS_CLOSING: |
835 RendererProcessClosing( | 842 RendererProcessClosing( |
836 Source<RenderProcessHost>(source).ptr()); | 843 Source<RenderProcessHost>(source).ptr()); |
837 break; | 844 break; |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 void RenderFrameHostManager::DeleteRenderFrameProxyHost( | 1969 void RenderFrameHostManager::DeleteRenderFrameProxyHost( |
1963 SiteInstance* instance) { | 1970 SiteInstance* instance) { |
1964 RenderFrameProxyHostMap::iterator iter = proxy_hosts_.find(instance->GetId()); | 1971 RenderFrameProxyHostMap::iterator iter = proxy_hosts_.find(instance->GetId()); |
1965 if (iter != proxy_hosts_.end()) { | 1972 if (iter != proxy_hosts_.end()) { |
1966 delete iter->second; | 1973 delete iter->second; |
1967 proxy_hosts_.erase(iter); | 1974 proxy_hosts_.erase(iter); |
1968 } | 1975 } |
1969 } | 1976 } |
1970 | 1977 |
1971 } // namespace content | 1978 } // namespace content |
OLD | NEW |