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