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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 virtual SiteInstance* GetSiteInstance() const OVERRIDE; | 208 virtual SiteInstance* GetSiteInstance() const OVERRIDE; |
209 virtual SiteInstance* GetPendingSiteInstance() const OVERRIDE; | 209 virtual SiteInstance* GetPendingSiteInstance() const OVERRIDE; |
210 virtual bool IsLoading() const OVERRIDE; | 210 virtual bool IsLoading() const OVERRIDE; |
211 virtual bool IsWaitingForResponse() const OVERRIDE; | 211 virtual bool IsWaitingForResponse() const OVERRIDE; |
212 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE; | 212 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE; |
213 virtual const string16& GetLoadStateHost() const OVERRIDE; | 213 virtual const string16& GetLoadStateHost() const OVERRIDE; |
214 virtual uint64 GetUploadSize() const OVERRIDE; | 214 virtual uint64 GetUploadSize() const OVERRIDE; |
215 virtual uint64 GetUploadPosition() const OVERRIDE; | 215 virtual uint64 GetUploadPosition() const OVERRIDE; |
216 virtual const std::string& GetEncoding() const OVERRIDE; | 216 virtual const std::string& GetEncoding() const OVERRIDE; |
217 virtual bool DisplayedInsecureContent() const OVERRIDE; | 217 virtual bool DisplayedInsecureContent() const OVERRIDE; |
218 virtual void SetCapturingContents(bool cap) OVERRIDE; | 218 virtual void IncrementCapturerCount() OVERRIDE; |
| 219 virtual void DecrementCapturerCount() OVERRIDE; |
219 virtual bool IsCrashed() const OVERRIDE; | 220 virtual bool IsCrashed() const OVERRIDE; |
220 virtual void SetIsCrashed(base::TerminationStatus status, | 221 virtual void SetIsCrashed(base::TerminationStatus status, |
221 int error_code) OVERRIDE; | 222 int error_code) OVERRIDE; |
222 virtual base::TerminationStatus GetCrashedStatus() const OVERRIDE; | 223 virtual base::TerminationStatus GetCrashedStatus() const OVERRIDE; |
223 virtual bool IsBeingDestroyed() const OVERRIDE; | 224 virtual bool IsBeingDestroyed() const OVERRIDE; |
224 virtual void NotifyNavigationStateChanged(unsigned changed_flags) OVERRIDE; | 225 virtual void NotifyNavigationStateChanged(unsigned changed_flags) OVERRIDE; |
225 virtual base::TimeTicks GetLastSelectedTime() const OVERRIDE; | 226 virtual base::TimeTicks GetLastSelectedTime() const OVERRIDE; |
226 virtual void WasShown() OVERRIDE; | 227 virtual void WasShown() OVERRIDE; |
227 virtual void WasHidden() OVERRIDE; | 228 virtual void WasHidden() OVERRIDE; |
228 virtual bool NeedToFireBeforeUnload() OVERRIDE; | 229 virtual bool NeedToFireBeforeUnload() OVERRIDE; |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 std::string contents_mime_type_; | 778 std::string contents_mime_type_; |
778 | 779 |
779 // Character encoding. | 780 // Character encoding. |
780 std::string encoding_; | 781 std::string encoding_; |
781 | 782 |
782 // True if this is a secure page which displayed insecure content. | 783 // True if this is a secure page which displayed insecure content. |
783 bool displayed_insecure_content_; | 784 bool displayed_insecure_content_; |
784 | 785 |
785 // Data for misc internal state ---------------------------------------------- | 786 // Data for misc internal state ---------------------------------------------- |
786 | 787 |
787 // Whether the WebContents is currently being screenshotted. | 788 // When > 0, the WebContents is currently being captured (e.g., for |
788 bool capturing_contents_; | 789 // screenshots or mirroring); and the underlying RenderWidgetHost should not |
| 790 // be told it is hidden. |
| 791 int capturer_count_; |
| 792 |
| 793 // Tracks whether RWHV should be visible once capturer_count_ becomes zero. |
| 794 bool should_normally_be_visible_; |
789 | 795 |
790 // See getter above. | 796 // See getter above. |
791 bool is_being_destroyed_; | 797 bool is_being_destroyed_; |
792 | 798 |
793 // Indicates whether we should notify about disconnection of this | 799 // Indicates whether we should notify about disconnection of this |
794 // WebContentsImpl. This is used to ensure disconnection notifications only | 800 // WebContentsImpl. This is used to ensure disconnection notifications only |
795 // happen if a connection notification has happened and that they happen only | 801 // happen if a connection notification has happened and that they happen only |
796 // once. | 802 // once. |
797 bool notify_disconnection_; | 803 bool notify_disconnection_; |
798 | 804 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 // Maps the ids of pending favicon downloads to their callbacks | 882 // Maps the ids of pending favicon downloads to their callbacks |
877 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 883 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
878 FaviconDownloadMap favicon_download_map_; | 884 FaviconDownloadMap favicon_download_map_; |
879 | 885 |
880 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 886 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
881 }; | 887 }; |
882 | 888 |
883 } // namespace content | 889 } // namespace content |
884 | 890 |
885 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 891 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |