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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 net::LoadStateWithParam load_state_; | 1085 net::LoadStateWithParam load_state_; |
1086 base::string16 load_state_host_; | 1086 base::string16 load_state_host_; |
1087 | 1087 |
1088 base::TimeTicks loading_last_progress_update_; | 1088 base::TimeTicks loading_last_progress_update_; |
1089 | 1089 |
1090 // Upload progress, for displaying in the status bar. | 1090 // Upload progress, for displaying in the status bar. |
1091 // Set to zero when there is no significant upload happening. | 1091 // Set to zero when there is no significant upload happening. |
1092 uint64 upload_size_; | 1092 uint64 upload_size_; |
1093 uint64 upload_position_; | 1093 uint64 upload_position_; |
1094 | 1094 |
| 1095 // Tracks that this WebContents needs to unblock requests to the renderer. |
| 1096 // See ResumeLoadingCreatedWebContents. |
| 1097 bool is_resume_pending_; |
| 1098 |
1095 // Data for current page ----------------------------------------------------- | 1099 // Data for current page ----------------------------------------------------- |
1096 | 1100 |
1097 // When a title cannot be taken from any entry, this title will be used. | 1101 // When a title cannot be taken from any entry, this title will be used. |
1098 base::string16 page_title_when_no_navigation_entry_; | 1102 base::string16 page_title_when_no_navigation_entry_; |
1099 | 1103 |
1100 // When a navigation occurs, we record its contents MIME type. It can be | 1104 // When a navigation occurs, we record its contents MIME type. It can be |
1101 // used to check whether we can do something for some special contents. | 1105 // used to check whether we can do something for some special contents. |
1102 std::string contents_mime_type_; | 1106 std::string contents_mime_type_; |
1103 | 1107 |
1104 // The last reported character encoding, not canonicalized. | 1108 // The last reported character encoding, not canonicalized. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 // Adds/removes a callback called on creation of each new WebContents. | 1294 // Adds/removes a callback called on creation of each new WebContents. |
1291 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1295 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1292 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1296 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1293 | 1297 |
1294 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1298 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1295 }; | 1299 }; |
1296 | 1300 |
1297 } // namespace content | 1301 } // namespace content |
1298 | 1302 |
1299 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1303 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |