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 #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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 // A list of observers notified when page state changes. Weak references. | 888 // A list of observers notified when page state changes. Weak references. |
889 // This MUST be listed above frame_tree_ since at destruction time the | 889 // This MUST be listed above frame_tree_ since at destruction time the |
890 // latter might cause RenderViewHost's destructor to call us and we might use | 890 // latter might cause RenderViewHost's destructor to call us and we might use |
891 // the observer list then. | 891 // the observer list then. |
892 ObserverList<WebContentsObserver> observers_; | 892 ObserverList<WebContentsObserver> observers_; |
893 | 893 |
894 // The tab that opened this tab, if any. Will be set to null if the opener | 894 // The tab that opened this tab, if any. Will be set to null if the opener |
895 // is closed. | 895 // is closed. |
896 WebContentsImpl* opener_; | 896 WebContentsImpl* opener_; |
897 | 897 |
| 898 // True if this tab was opened by another tab. This is not unset if the opener |
| 899 // is closed. |
| 900 bool created_with_opener_; |
| 901 |
898 #if defined(OS_WIN) | 902 #if defined(OS_WIN) |
899 gfx::NativeViewAccessible accessible_parent_; | 903 gfx::NativeViewAccessible accessible_parent_; |
900 #endif | 904 #endif |
901 | 905 |
902 // Helper classes ------------------------------------------------------------ | 906 // Helper classes ------------------------------------------------------------ |
903 | 907 |
904 // Maps the RenderViewHost to its media_player_cookie and PowerSaveBlocker | 908 // Maps the RenderViewHost to its media_player_cookie and PowerSaveBlocker |
905 // pairs. Key is the RenderViewHost, value is the map which maps player_cookie | 909 // pairs. Key is the RenderViewHost, value is the map which maps player_cookie |
906 // on to PowerSaveBlocker. | 910 // on to PowerSaveBlocker. |
907 typedef std::map<RenderViewHost*, std::map<int64, PowerSaveBlocker*> > | 911 typedef std::map<RenderViewHost*, std::map<int64, PowerSaveBlocker*> > |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 | 1091 |
1088 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1092 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1089 bool last_dialog_suppressed_; | 1093 bool last_dialog_suppressed_; |
1090 | 1094 |
1091 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1095 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1092 }; | 1096 }; |
1093 | 1097 |
1094 } // namespace content | 1098 } // namespace content |
1095 | 1099 |
1096 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1100 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |