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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 | 1067 |
1068 // Map of SiteInstance ID to max page ID for this tab. A page ID is specific | 1068 // Map of SiteInstance ID to max page ID for this tab. A page ID is specific |
1069 // to a given tab and SiteInstance, and must be valid for the lifetime of the | 1069 // to a given tab and SiteInstance, and must be valid for the lifetime of the |
1070 // WebContentsImpl. | 1070 // WebContentsImpl. |
1071 std::map<int32, int32> max_page_ids_; | 1071 std::map<int32, int32> max_page_ids_; |
1072 | 1072 |
1073 // The current load state and the URL associated with it. | 1073 // The current load state and the URL associated with it. |
1074 net::LoadStateWithParam load_state_; | 1074 net::LoadStateWithParam load_state_; |
1075 base::string16 load_state_host_; | 1075 base::string16 load_state_host_; |
1076 | 1076 |
1077 // LoadingProgressMap maps FrameTreeNode IDs to a double representing that | |
1078 // frame's completion (from 0 to 1). | |
1079 typedef base::hash_map<int64, double> LoadingProgressMap; | |
1080 LoadingProgressMap loading_progresses_; | |
1081 double loading_total_progress_; | 1077 double loading_total_progress_; |
1082 | 1078 |
1083 base::TimeTicks loading_last_progress_update_; | 1079 base::TimeTicks loading_last_progress_update_; |
1084 | 1080 |
1085 // Counter to track how many frames have sent start notifications but not | |
1086 // stop notifications. | |
1087 int loading_frames_in_progress_; | |
1088 | |
1089 // Upload progress, for displaying in the status bar. | 1081 // Upload progress, for displaying in the status bar. |
1090 // Set to zero when there is no significant upload happening. | 1082 // Set to zero when there is no significant upload happening. |
1091 uint64 upload_size_; | 1083 uint64 upload_size_; |
1092 uint64 upload_position_; | 1084 uint64 upload_position_; |
1093 | 1085 |
1094 // Data for current page ----------------------------------------------------- | 1086 // Data for current page ----------------------------------------------------- |
1095 | 1087 |
1096 // When a title cannot be taken from any entry, this title will be used. | 1088 // When a title cannot be taken from any entry, this title will be used. |
1097 base::string16 page_title_when_no_navigation_entry_; | 1089 base::string16 page_title_when_no_navigation_entry_; |
1098 | 1090 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 // Adds/removes a callback called on creation of each new WebContents. | 1282 // Adds/removes a callback called on creation of each new WebContents. |
1291 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1283 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1292 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1284 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1293 | 1285 |
1294 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1286 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1295 }; | 1287 }; |
1296 | 1288 |
1297 } // namespace content | 1289 } // namespace content |
1298 | 1290 |
1299 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1291 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |