Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2905763002: Deduplicating CanReadRequestBody code. (Closed)
Patch Set: Rebasing... Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); 942 const FrameHostMsg_DidCommitProvisionalLoad_Params& params);
943 943
944 // Called by |beforeunload_timeout_| when the beforeunload timeout fires. 944 // Called by |beforeunload_timeout_| when the beforeunload timeout fires.
945 void BeforeUnloadTimeout(); 945 void BeforeUnloadTimeout();
946 946
947 // Called when a navigation commits succesfully to |url|. This will update 947 // Called when a navigation commits succesfully to |url|. This will update
948 // |last_committed_site_url_| if it's not equal to the site url corresponding 948 // |last_committed_site_url_| if it's not equal to the site url corresponding
949 // to |url|. 949 // to |url|.
950 void SetLastCommittedSiteUrl(const GURL& url); 950 void SetLastCommittedSiteUrl(const GURL& url);
951 951
952 // Ensures that the upload parameters sent by the renderer process are
953 // valid and any files specified are allowed for access.
954 bool ValidateUploadParams(const CommonNavigationParams& common_params);
955
956 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a 952 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
957 // refcount that calls Shutdown when it reaches zero. This allows each 953 // refcount that calls Shutdown when it reaches zero. This allows each
958 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring 954 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
959 // we have a RenderViewHost for each RenderFrameHost. 955 // we have a RenderViewHost for each RenderFrameHost.
960 // TODO(creis): RenderViewHost will eventually go away and be replaced with 956 // TODO(creis): RenderViewHost will eventually go away and be replaced with
961 // some form of page context. 957 // some form of page context.
962 RenderViewHostImpl* const render_view_host_; 958 RenderViewHostImpl* const render_view_host_;
963 959
964 RenderFrameHostDelegate* const delegate_; 960 RenderFrameHostDelegate* const delegate_;
965 961
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1238 1234
1239 // NOTE: This must be the last member. 1235 // NOTE: This must be the last member.
1240 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1236 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1241 1237
1242 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1238 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1243 }; 1239 };
1244 1240
1245 } // namespace content 1241 } // namespace content
1246 1242
1247 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1243 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698