Chromium Code Reviews| 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 323 // Cleared when we hear the response and start to swap out the old | 323 // Cleared when we hear the response and start to swap out the old |
| 324 // RenderViewHost, or if we hear a commit here without a network request. | 324 // RenderViewHost, or if we hear a commit here without a network request. |
| 325 bool HasPendingCrossSiteRequest(); | 325 bool HasPendingCrossSiteRequest(); |
| 326 | 326 |
| 327 // Sets whether this RenderViewHost has an outstanding cross-site request, | 327 // Sets whether this RenderViewHost has an outstanding cross-site request, |
| 328 // for which another renderer will need to run an onunload event handler. | 328 // for which another renderer will need to run an onunload event handler. |
| 329 // This is called before the first navigation event for this RenderViewHost, | 329 // This is called before the first navigation event for this RenderViewHost, |
| 330 // and cleared when we hear the response or commit. | 330 // and cleared when we hear the response or commit. |
| 331 void SetHasPendingCrossSiteRequest(bool has_pending_request); | 331 void SetHasPendingCrossSiteRequest(bool has_pending_request); |
| 332 | 332 |
| 333 // Sets whether this RenderViewHost has an outstanding transition request. | |
| 334 // This is called at the start of a provisional load for the main frame, | |
| 335 // and cleared when we hear the response or commit. | |
| 336 void SetHasPendingTransitionRequest(bool has_pending_request); | |
|
nasko
2014/05/28 22:59:00
Please don't add any more code to RenderViewHost,
shatch
2014/05/29 21:41:22
Done.
| |
| 337 | |
| 333 // Tells the renderer view to focus the first (last if reverse is true) node. | 338 // Tells the renderer view to focus the first (last if reverse is true) node. |
| 334 void SetInitialFocus(bool reverse); | 339 void SetInitialFocus(bool reverse); |
| 335 | 340 |
| 336 // Get html data by serializing all frames of current page with lists | 341 // Get html data by serializing all frames of current page with lists |
| 337 // which contain all resource links that have local copy. | 342 // which contain all resource links that have local copy. |
| 338 // The parameter links contain original URLs of all saved links. | 343 // The parameter links contain original URLs of all saved links. |
| 339 // The parameter local_paths contain corresponding local file paths of | 344 // The parameter local_paths contain corresponding local file paths of |
| 340 // all saved links, which matched with vector:links one by one. | 345 // all saved links, which matched with vector:links one by one. |
| 341 // The parameter local_directory_name is relative path of directory which | 346 // The parameter local_directory_name is relative path of directory which |
| 342 // contain all saved auxiliary files included all sub frames and resouces. | 347 // contain all saved auxiliary files included all sub frames and resouces. |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 648 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 653 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 649 }; | 654 }; |
| 650 | 655 |
| 651 #if defined(COMPILER_MSVC) | 656 #if defined(COMPILER_MSVC) |
| 652 #pragma warning(pop) | 657 #pragma warning(pop) |
| 653 #endif | 658 #endif |
| 654 | 659 |
| 655 } // namespace content | 660 } // namespace content |
| 656 | 661 |
| 657 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 662 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |