| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 // Destroys all WebUI instances and resets related data. | 552 // Destroys all WebUI instances and resets related data. |
| 553 void ClearAllWebUI(); | 553 void ClearAllWebUI(); |
| 554 | 554 |
| 555 // Returns the Mojo ImageDownloader service. | 555 // Returns the Mojo ImageDownloader service. |
| 556 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader(); | 556 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader(); |
| 557 | 557 |
| 558 // Resets the loading state. Following this call, the RenderFrameHost will be | 558 // Resets the loading state. Following this call, the RenderFrameHost will be |
| 559 // in a non-loading state. | 559 // in a non-loading state. |
| 560 void ResetLoadingState(); | 560 void ResetLoadingState(); |
| 561 | 561 |
| 562 // Tells the renderer that this RenderFrame will soon be swapped out, and thus |
| 563 // not to create any new modal dialogs until it happens. This must be done |
| 564 // separately so that the ScopedPageLoadDeferrers of any current dialogs are |
| 565 // no longer on the stack when we attempt to swap it out. |
| 566 void SuppressFurtherDialogs(); |
| 567 |
| 562 // PlzNavigate: returns the LoFi state of the last successful navigation that | 568 // PlzNavigate: returns the LoFi state of the last successful navigation that |
| 563 // made a network request. | 569 // made a network request. |
| 564 LoFiState last_navigation_lofi_state() const { | 570 LoFiState last_navigation_lofi_state() const { |
| 565 return last_navigation_lofi_state_; | 571 return last_navigation_lofi_state_; |
| 566 } | 572 } |
| 567 | 573 |
| 568 protected: | 574 protected: |
| 569 friend class RenderFrameHostFactory; | 575 friend class RenderFrameHostFactory; |
| 570 | 576 |
| 571 // |flags| is a combination of CreateRenderFrameFlags. | 577 // |flags| is a combination of CreateRenderFrameFlags. |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 | 982 |
| 977 // NOTE: This must be the last member. | 983 // NOTE: This must be the last member. |
| 978 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 984 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 979 | 985 |
| 980 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 986 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 981 }; | 987 }; |
| 982 | 988 |
| 983 } // namespace content | 989 } // namespace content |
| 984 | 990 |
| 985 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 991 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |