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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
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
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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews; 1008 typedef std::map<int, RenderWidgetHostView*> PendingWidgetViews;
1009 PendingWidgetViews pending_widget_views_; 1009 PendingWidgetViews pending_widget_views_;
1010 1010
1011 typedef std::map<WebContentsImpl*, DestructionObserver*> DestructionObservers; 1011 typedef std::map<WebContentsImpl*, DestructionObserver*> DestructionObservers;
1012 DestructionObservers destruction_observers_; 1012 DestructionObservers destruction_observers_;
1013 1013
1014 // A list of observers notified when page state changes. Weak references. 1014 // A list of observers notified when page state changes. Weak references.
1015 // This MUST be listed above frame_tree_ since at destruction time the 1015 // This MUST be listed above frame_tree_ since at destruction time the
1016 // latter might cause RenderViewHost's destructor to call us and we might use 1016 // latter might cause RenderViewHost's destructor to call us and we might use
1017 // the observer list then. 1017 // the observer list then.
1018 ObserverList<WebContentsObserver> observers_; 1018 base::ObserverList<WebContentsObserver> observers_;
1019 1019
1020 // The tab that opened this tab, if any. Will be set to null if the opener 1020 // The tab that opened this tab, if any. Will be set to null if the opener
1021 // is closed. 1021 // is closed.
1022 WebContentsImpl* opener_; 1022 WebContentsImpl* opener_;
1023 1023
1024 // True if this tab was opened by another tab. This is not unset if the opener 1024 // True if this tab was opened by another tab. This is not unset if the opener
1025 // is closed. 1025 // is closed.
1026 bool created_with_opener_; 1026 bool created_with_opener_;
1027 1027
1028 #if defined(OS_WIN) 1028 #if defined(OS_WIN)
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 // Adds/removes a callback called on creation of each new WebContents. 1284 // Adds/removes a callback called on creation of each new WebContents.
1285 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1285 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1286 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1286 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1287 1287
1288 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1288 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1289 }; 1289 };
1290 1290
1291 } // namespace content 1291 } // namespace content
1292 1292
1293 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1293 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/shared_worker/shared_worker_service_impl.h ('k') | content/child/worker_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698