| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 // browser for. This is used to determine if the most recent transition | 1087 // browser for. This is used to determine if the most recent transition |
| 1088 // generated a history entry (less than page_id_), or not (equal to or | 1088 // generated a history entry (less than page_id_), or not (equal to or |
| 1089 // greater than). Note that this will be greater than page_id_ if the user | 1089 // greater than). Note that this will be greater than page_id_ if the user |
| 1090 // goes back. | 1090 // goes back. |
| 1091 int32 last_page_id_sent_to_browser_; | 1091 int32 last_page_id_sent_to_browser_; |
| 1092 | 1092 |
| 1093 // Page_id from the last page we indexed. This prevents us from indexing the | 1093 // Page_id from the last page we indexed. This prevents us from indexing the |
| 1094 // same page twice in a row. | 1094 // same page twice in a row. |
| 1095 int32 last_indexed_page_id_; | 1095 int32 last_indexed_page_id_; |
| 1096 | 1096 |
| 1097 // page id for the last navigation sent to the browser. | |
| 1098 int32 last_top_level_navigation_page_id_; | |
| 1099 | |
| 1100 // The next available page ID to use. This ensures that the page IDs are | 1097 // The next available page ID to use. This ensures that the page IDs are |
| 1101 // globally unique in the renderer. | 1098 // globally unique in the renderer. |
| 1102 static int32 next_page_id_; | 1099 static int32 next_page_id_; |
| 1103 | 1100 |
| 1104 // Page info ----------------------------------------------------------------- | 1101 // Page info ----------------------------------------------------------------- |
| 1105 | 1102 |
| 1106 // The last gotten main frame's encoding. | 1103 // The last gotten main frame's encoding. |
| 1107 std::string last_encoding_name_; | 1104 std::string last_encoding_name_; |
| 1108 | 1105 |
| 1109 int history_list_offset_; | 1106 int history_list_offset_; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1305 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
| 1309 // sections rather than throwing it randomly at the end. If you're adding a | 1306 // sections rather than throwing it randomly at the end. If you're adding a |
| 1310 // bunch of stuff, you should probably create a helper class and put your | 1307 // bunch of stuff, you should probably create a helper class and put your |
| 1311 // data and methods on that to avoid bloating RenderView more. | 1308 // data and methods on that to avoid bloating RenderView more. |
| 1312 // --------------------------------------------------------------------------- | 1309 // --------------------------------------------------------------------------- |
| 1313 | 1310 |
| 1314 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1311 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1315 }; | 1312 }; |
| 1316 | 1313 |
| 1317 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1314 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |