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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
868 // A list of observers notified when page state changes. Weak references. | 868 // A list of observers notified when page state changes. Weak references. |
869 // This MUST be listed above frame_tree_ since at destruction time the | 869 // This MUST be listed above frame_tree_ since at destruction time the |
870 // latter might cause RenderViewHost's destructor to call us and we might use | 870 // latter might cause RenderViewHost's destructor to call us and we might use |
871 // the observer list then. | 871 // the observer list then. |
872 ObserverList<WebContentsObserver> observers_; | 872 ObserverList<WebContentsObserver> observers_; |
873 | 873 |
874 // The tab that opened this tab, if any. Will be set to null if the opener | 874 // The tab that opened this tab, if any. Will be set to null if the opener |
875 // is closed. | 875 // is closed. |
876 WebContentsImpl* opener_; | 876 WebContentsImpl* opener_; |
877 | 877 |
878 // True if this tab was opened by another tab. Is not unset when opener is | |
nasko
2014/04/08 22:43:25
nit: "It is not ..."
davidben
2014/04/08 23:48:23
Done. (Well, s/It/This/. "It" seems a little weird
| |
879 // closed. | |
880 bool created_with_opener_; | |
881 | |
878 #if defined(OS_WIN) | 882 #if defined(OS_WIN) |
879 gfx::NativeViewAccessible accessible_parent_; | 883 gfx::NativeViewAccessible accessible_parent_; |
880 #endif | 884 #endif |
881 | 885 |
882 // Helper classes ------------------------------------------------------------ | 886 // Helper classes ------------------------------------------------------------ |
883 | 887 |
884 // Maps the RenderViewHost to its media_player_cookie and PowerSaveBlocker | 888 // Maps the RenderViewHost to its media_player_cookie and PowerSaveBlocker |
885 // pairs. Key is the RenderViewHost, value is the map which maps player_cookie | 889 // pairs. Key is the RenderViewHost, value is the map which maps player_cookie |
886 // on to PowerSaveBlocker. | 890 // on to PowerSaveBlocker. |
887 typedef std::map<RenderViewHost*, std::map<int64, PowerSaveBlocker*> > | 891 typedef std::map<RenderViewHost*, std::map<int64, PowerSaveBlocker*> > |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1050 // Whether this WebContents is responsible for displaying a subframe in a | 1054 // Whether this WebContents is responsible for displaying a subframe in a |
1051 // different process from its parent page. | 1055 // different process from its parent page. |
1052 bool is_subframe_; | 1056 bool is_subframe_; |
1053 | 1057 |
1054 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1058 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1055 }; | 1059 }; |
1056 | 1060 |
1057 } // namespace content | 1061 } // namespace content |
1058 | 1062 |
1059 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1063 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |