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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
368 // If a cross-site request is in progress, we may be suspended while waiting | 368 // If a cross-site request is in progress, we may be suspended while waiting |
369 // for the onbeforeunload handler, so this function might buffer the message | 369 // for the onbeforeunload handler, so this function might buffer the message |
370 // rather than sending it. | 370 // rather than sending it. |
371 void Navigate(const CommonNavigationParams& common_params, | 371 void Navigate(const CommonNavigationParams& common_params, |
372 const StartNavigationParams& start_params, | 372 const StartNavigationParams& start_params, |
373 const RequestNavigationParams& request_params); | 373 const RequestNavigationParams& request_params); |
374 | 374 |
375 // Navigates to an interstitial page represented by the provided data URL. | 375 // Navigates to an interstitial page represented by the provided data URL. |
376 void NavigateToInterstitialURL(const GURL& data_url); | 376 void NavigateToInterstitialURL(const GURL& data_url); |
377 | 377 |
378 // Treat this prospective navigation as though it originated from the frame. | 378 // Starts a new navigation. This navigation can originate from any frame in |
379 // Used, e.g., for a navigation request that originated from a RemoteFrame. | 379 // this frame's SiteInstance. Note that navigations on RenderFrameProxies do |
380 // |source_site_instance| is the SiteInstance of the frame that initiated the | 380 // not use this and go through RequestTransferURL instead. |
381 // navigation. | 381 void OpenURL(const FrameHostMsg_OpenURL_Params& params); |
382 // TODO(creis): Remove this method and have RenderFrameProxyHost call | |
Charlie Reis
2016/11/02 17:05:37
Interesting-- I guess this evolved to be the defau
alexmos
2016/11/03 06:03:01
Comment is now gone after I combined this with OnO
| |
383 // RequestOpenURL with its FrameTreeNode. | |
384 void OpenURL(const FrameHostMsg_OpenURL_Params& params, | |
385 SiteInstance* source_site_instance); | |
386 | 382 |
387 // Stop the load in progress. | 383 // Stop the load in progress. |
388 void Stop(); | 384 void Stop(); |
389 | 385 |
390 // Returns whether navigation messages are currently suspended for this | 386 // Returns whether navigation messages are currently suspended for this |
391 // RenderFrameHost. Only true during a cross-site navigation, while waiting | 387 // RenderFrameHost. Only true during a cross-site navigation, while waiting |
392 // for the onbeforeunload handler. | 388 // for the onbeforeunload handler. |
393 bool are_navigations_suspended() const { return navigations_suspended_; } | 389 bool are_navigations_suspended() const { return navigations_suspended_; } |
394 | 390 |
395 // Suspends (or unsuspends) any navigation messages from being sent from this | 391 // Suspends (or unsuspends) any navigation messages from being sent from this |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1060 remote_associated_interfaces_; | 1056 remote_associated_interfaces_; |
1061 // NOTE: This must be the last member. | 1057 // NOTE: This must be the last member. |
1062 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1058 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1063 | 1059 |
1064 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1060 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1065 }; | 1061 }; |
1066 | 1062 |
1067 } // namespace content | 1063 } // namespace content |
1068 | 1064 |
1069 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1065 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |