| 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/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 return false; | 961 return false; |
| 962 | 962 |
| 963 // TODO(kenrb): document() should not be null, but as a transitional step | 963 // TODO(kenrb): document() should not be null, but as a transitional step |
| 964 // we have RenderFrameProxy 'wrapping' a RenderFrameImpl, passing messages | 964 // we have RenderFrameProxy 'wrapping' a RenderFrameImpl, passing messages |
| 965 // to this method. This happens for a top-level remote frame, where a | 965 // to this method. This happens for a top-level remote frame, where a |
| 966 // document-less RenderFrame is replaced by a RenderFrameProxy but kept | 966 // document-less RenderFrame is replaced by a RenderFrameProxy but kept |
| 967 // around and is still able to receive messages. | 967 // around and is still able to receive messages. |
| 968 if (!frame_->document().isNull()) | 968 if (!frame_->document().isNull()) |
| 969 GetContentClient()->SetActiveURL(frame_->document().url()); | 969 GetContentClient()->SetActiveURL(frame_->document().url()); |
| 970 | 970 |
| 971 ObserverListBase<RenderFrameObserver>::Iterator it(&observers_); | 971 base::ObserverListBase<RenderFrameObserver>::Iterator it(&observers_); |
| 972 RenderFrameObserver* observer; | 972 RenderFrameObserver* observer; |
| 973 while ((observer = it.GetNext()) != NULL) { | 973 while ((observer = it.GetNext()) != NULL) { |
| 974 if (observer->OnMessageReceived(msg)) | 974 if (observer->OnMessageReceived(msg)) |
| 975 return true; | 975 return true; |
| 976 } | 976 } |
| 977 | 977 |
| 978 bool handled = true; | 978 bool handled = true; |
| 979 IPC_BEGIN_MESSAGE_MAP(RenderFrameImpl, msg) | 979 IPC_BEGIN_MESSAGE_MAP(RenderFrameImpl, msg) |
| 980 IPC_MESSAGE_HANDLER(FrameMsg_Navigate, OnNavigate) | 980 IPC_MESSAGE_HANDLER(FrameMsg_Navigate, OnNavigate) |
| 981 IPC_MESSAGE_HANDLER(FrameMsg_BeforeUnload, OnBeforeUnload) | 981 IPC_MESSAGE_HANDLER(FrameMsg_BeforeUnload, OnBeforeUnload) |
| (...skipping 3895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4877 #elif defined(ENABLE_BROWSER_CDMS) | 4877 #elif defined(ENABLE_BROWSER_CDMS) |
| 4878 cdm_manager_, | 4878 cdm_manager_, |
| 4879 #endif | 4879 #endif |
| 4880 this); | 4880 this); |
| 4881 } | 4881 } |
| 4882 | 4882 |
| 4883 return cdm_factory_; | 4883 return cdm_factory_; |
| 4884 } | 4884 } |
| 4885 | 4885 |
| 4886 } // namespace content | 4886 } // namespace content |
| OLD | NEW |