| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 virtual void SetParentNativeViewAccessible( | 206 virtual void SetParentNativeViewAccessible( |
| 207 gfx::NativeViewAccessible accessible_parent) OVERRIDE; | 207 gfx::NativeViewAccessible accessible_parent) OVERRIDE; |
| 208 #endif | 208 #endif |
| 209 virtual const base::string16& GetTitle() const OVERRIDE; | 209 virtual const base::string16& GetTitle() const OVERRIDE; |
| 210 virtual int32 GetMaxPageID() OVERRIDE; | 210 virtual int32 GetMaxPageID() OVERRIDE; |
| 211 virtual int32 GetMaxPageIDForSiteInstance( | 211 virtual int32 GetMaxPageIDForSiteInstance( |
| 212 SiteInstance* site_instance) OVERRIDE; | 212 SiteInstance* site_instance) OVERRIDE; |
| 213 virtual SiteInstance* GetSiteInstance() const OVERRIDE; | 213 virtual SiteInstance* GetSiteInstance() const OVERRIDE; |
| 214 virtual SiteInstance* GetPendingSiteInstance() const OVERRIDE; | 214 virtual SiteInstance* GetPendingSiteInstance() const OVERRIDE; |
| 215 virtual bool IsLoading() const OVERRIDE; | 215 virtual bool IsLoading() const OVERRIDE; |
| 216 virtual bool IsDocumentLoadedInMainFrame() const OVERRIDE; |
| 216 virtual bool IsWaitingForResponse() const OVERRIDE; | 217 virtual bool IsWaitingForResponse() const OVERRIDE; |
| 217 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE; | 218 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE; |
| 218 virtual const base::string16& GetLoadStateHost() const OVERRIDE; | 219 virtual const base::string16& GetLoadStateHost() const OVERRIDE; |
| 219 virtual uint64 GetUploadSize() const OVERRIDE; | 220 virtual uint64 GetUploadSize() const OVERRIDE; |
| 220 virtual uint64 GetUploadPosition() const OVERRIDE; | 221 virtual uint64 GetUploadPosition() const OVERRIDE; |
| 221 virtual std::set<GURL> GetSitesInTab() const OVERRIDE; | 222 virtual std::set<GURL> GetSitesInTab() const OVERRIDE; |
| 222 virtual const std::string& GetEncoding() const OVERRIDE; | 223 virtual const std::string& GetEncoding() const OVERRIDE; |
| 223 virtual bool DisplayedInsecureContent() const OVERRIDE; | 224 virtual bool DisplayedInsecureContent() const OVERRIDE; |
| 224 virtual void IncrementCapturerCount(const gfx::Size& capture_size) OVERRIDE; | 225 virtual void IncrementCapturerCount(const gfx::Size& capture_size) OVERRIDE; |
| 225 virtual void DecrementCapturerCount() OVERRIDE; | 226 virtual void DecrementCapturerCount() OVERRIDE; |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 #endif | 925 #endif |
| 925 | 926 |
| 926 // SavePackage, lazily created. | 927 // SavePackage, lazily created. |
| 927 scoped_refptr<SavePackage> save_package_; | 928 scoped_refptr<SavePackage> save_package_; |
| 928 | 929 |
| 929 // Data for loading state ---------------------------------------------------- | 930 // Data for loading state ---------------------------------------------------- |
| 930 | 931 |
| 931 // Indicates whether we're currently loading a resource. | 932 // Indicates whether we're currently loading a resource. |
| 932 bool is_loading_; | 933 bool is_loading_; |
| 933 | 934 |
| 935 // Indicates whether the main frame document has been loaded. |
| 936 bool is_document_loaded_in_main_frame_; |
| 937 |
| 934 // Indicates if the tab is considered crashed. | 938 // Indicates if the tab is considered crashed. |
| 935 base::TerminationStatus crashed_status_; | 939 base::TerminationStatus crashed_status_; |
| 936 int crashed_error_code_; | 940 int crashed_error_code_; |
| 937 | 941 |
| 938 // Whether this WebContents is waiting for a first-response for the | 942 // Whether this WebContents is waiting for a first-response for the |
| 939 // main resource of the page. This controls whether the throbber state is | 943 // main resource of the page. This controls whether the throbber state is |
| 940 // "waiting" or "loading." | 944 // "waiting" or "loading." |
| 941 bool waiting_for_response_; | 945 bool waiting_for_response_; |
| 942 | 946 |
| 943 // Map of SiteInstance ID to max page ID for this tab. A page ID is specific | 947 // Map of SiteInstance ID to max page ID for this tab. A page ID is specific |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 | 1101 |
| 1098 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1102 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1099 bool last_dialog_suppressed_; | 1103 bool last_dialog_suppressed_; |
| 1100 | 1104 |
| 1101 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1105 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1102 }; | 1106 }; |
| 1103 | 1107 |
| 1104 } // namespace content | 1108 } // namespace content |
| 1105 | 1109 |
| 1106 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1110 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |