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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); | 954 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); |
955 | 955 |
956 // Called by |beforeunload_timeout_| when the beforeunload timeout fires. | 956 // Called by |beforeunload_timeout_| when the beforeunload timeout fires. |
957 void BeforeUnloadTimeout(); | 957 void BeforeUnloadTimeout(); |
958 | 958 |
959 // Called when a navigation commits succesfully to |url|. This will update | 959 // Called when a navigation commits succesfully to |url|. This will update |
960 // |last_committed_site_url_| if it's not equal to the site url corresponding | 960 // |last_committed_site_url_| if it's not equal to the site url corresponding |
961 // to |url|. | 961 // to |url|. |
962 void SetLastCommittedSiteUrl(const GURL& url); | 962 void SetLastCommittedSiteUrl(const GURL& url); |
963 | 963 |
964 // Ensures that the upload parameters sent by the renderer process are | |
965 // valid and any files specified are allowed for access. | |
966 bool ValidateUploadParams(const CommonNavigationParams& common_params); | |
967 | |
968 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 964 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
969 // refcount that calls Shutdown when it reaches zero. This allows each | 965 // refcount that calls Shutdown when it reaches zero. This allows each |
970 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 966 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
971 // we have a RenderViewHost for each RenderFrameHost. | 967 // we have a RenderViewHost for each RenderFrameHost. |
972 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 968 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
973 // some form of page context. | 969 // some form of page context. |
974 RenderViewHostImpl* const render_view_host_; | 970 RenderViewHostImpl* const render_view_host_; |
975 | 971 |
976 RenderFrameHostDelegate* const delegate_; | 972 RenderFrameHostDelegate* const delegate_; |
977 | 973 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 | 1243 |
1248 // NOTE: This must be the last member. | 1244 // NOTE: This must be the last member. |
1249 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1245 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1250 | 1246 |
1251 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1247 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1252 }; | 1248 }; |
1253 | 1249 |
1254 } // namespace content | 1250 } // namespace content |
1255 | 1251 |
1256 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1252 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |