| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 void DidCancelPopupMenu(); | 408 void DidCancelPopupMenu(); |
| 409 #endif | 409 #endif |
| 410 | 410 |
| 411 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 411 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
| 412 // handled by this RenderFrame. | 412 // handled by this RenderFrame. |
| 413 void CommitNavigation(ResourceResponse* response, | 413 void CommitNavigation(ResourceResponse* response, |
| 414 scoped_ptr<StreamHandle> body, | 414 scoped_ptr<StreamHandle> body, |
| 415 const CommonNavigationParams& common_params, | 415 const CommonNavigationParams& common_params, |
| 416 const RequestNavigationParams& request_params); | 416 const RequestNavigationParams& request_params); |
| 417 | 417 |
| 418 // PlzNavigate |
| 419 // Indicates that a navigation failed and that this RenderFrame should display |
| 420 // an error page. |
| 421 void FailedNavigation(const CommonNavigationParams& common_params, |
| 422 const RequestNavigationParams& request_params, |
| 423 bool has_stale_copy_in_cache, |
| 424 int error_code); |
| 425 |
| 418 // Sets up the Mojo connection between this instance and its associated render | 426 // Sets up the Mojo connection between this instance and its associated render |
| 419 // frame if it has not yet been set up. | 427 // frame if it has not yet been set up. |
| 420 void SetUpMojoIfNeeded(); | 428 void SetUpMojoIfNeeded(); |
| 421 | 429 |
| 422 // Tears down the browser-side state relating to the Mojo connection between | 430 // Tears down the browser-side state relating to the Mojo connection between |
| 423 // this instance and its associated render frame. | 431 // this instance and its associated render frame. |
| 424 void InvalidateMojoConnection(); | 432 void InvalidateMojoConnection(); |
| 425 | 433 |
| 426 // Returns whether the frame is focused. A frame is considered focused when it | 434 // Returns whether the frame is focused. A frame is considered focused when it |
| 427 // is the parent chain of the focused frame within the frame tree. In | 435 // is the parent chain of the focused frame within the frame tree. In |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 | 706 |
| 699 // NOTE: This must be the last member. | 707 // NOTE: This must be the last member. |
| 700 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 708 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 701 | 709 |
| 702 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 710 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 703 }; | 711 }; |
| 704 | 712 |
| 705 } // namespace content | 713 } // namespace content |
| 706 | 714 |
| 707 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 715 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |