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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 std::string contents_mime_type_; | 777 std::string contents_mime_type_; |
778 | 778 |
779 // Character encoding. | 779 // Character encoding. |
780 std::string encoding_; | 780 std::string encoding_; |
781 | 781 |
782 // True if this is a secure page which displayed insecure content. | 782 // True if this is a secure page which displayed insecure content. |
783 bool displayed_insecure_content_; | 783 bool displayed_insecure_content_; |
784 | 784 |
785 // Data for misc internal state ---------------------------------------------- | 785 // Data for misc internal state ---------------------------------------------- |
786 | 786 |
787 // Whether the WebContents is currently being screenshotted. | 787 // When > 0, the WebContents is currently being captured (e.g., for |
788 bool capturing_contents_; | 788 // screenshots or mirroring); and the underlying RenderWidgetHost should not |
| 789 // be told it is hidden. |
| 790 int capturing_count_; |
789 | 791 |
790 // See getter above. | 792 // See getter above. |
791 bool is_being_destroyed_; | 793 bool is_being_destroyed_; |
792 | 794 |
793 // Indicates whether we should notify about disconnection of this | 795 // Indicates whether we should notify about disconnection of this |
794 // WebContentsImpl. This is used to ensure disconnection notifications only | 796 // WebContentsImpl. This is used to ensure disconnection notifications only |
795 // happen if a connection notification has happened and that they happen only | 797 // happen if a connection notification has happened and that they happen only |
796 // once. | 798 // once. |
797 bool notify_disconnection_; | 799 bool notify_disconnection_; |
798 | 800 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 // Maps the ids of pending favicon downloads to their callbacks | 878 // Maps the ids of pending favicon downloads to their callbacks |
877 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 879 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
878 FaviconDownloadMap favicon_download_map_; | 880 FaviconDownloadMap favicon_download_map_; |
879 | 881 |
880 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 882 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
881 }; | 883 }; |
882 | 884 |
883 } // namespace content | 885 } // namespace content |
884 | 886 |
885 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 887 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |