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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1152983004: Move ObserverList to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698