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

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

Issue 2758993002: Move the functions which block, resume and cancel requests for a frame route id out of ResourceDisp… (Closed)
Patch Set: Rebased to tip Created 3 years, 9 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool IsRenderFrameLive() override; 178 bool IsRenderFrameLive() override;
179 int GetProxyCount() override; 179 int GetProxyCount() override;
180 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, 180 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files,
181 FileChooserParams::Mode permissions) override; 181 FileChooserParams::Mode permissions) override;
182 bool HasSelection() override; 182 bool HasSelection() override;
183 void RequestTextSurroundingSelection( 183 void RequestTextSurroundingSelection(
184 const TextSurroundingSelectionCallback& callback, 184 const TextSurroundingSelectionCallback& callback,
185 int max_length) override; 185 int max_length) override;
186 void AllowBindings(int binding_flags) override; 186 void AllowBindings(int binding_flags) override;
187 int GetEnabledBindings() const override; 187 int GetEnabledBindings() const override;
188 void BlockRequestsForFrame() override;
189 void ResumeBlockedRequestsForFrame() override;
188 190
189 // mojom::FrameHost 191 // mojom::FrameHost
190 void GetInterfaceProvider( 192 void GetInterfaceProvider(
191 service_manager::mojom::InterfaceProviderRequest interfaces) override; 193 service_manager::mojom::InterfaceProviderRequest interfaces) override;
192 194
193 // IPC::Sender 195 // IPC::Sender
194 bool Send(IPC::Message* msg) override; 196 bool Send(IPC::Message* msg) override;
195 197
196 // IPC::Listener 198 // IPC::Listener
197 bool OnMessageReceived(const IPC::Message& msg) override; 199 bool OnMessageReceived(const IPC::Message& msg) override;
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 // that made a network request. The PreviewsState is a bitmask of potentially 618 // that made a network request. The PreviewsState is a bitmask of potentially
617 // several Previews optimizations. 619 // several Previews optimizations.
618 PreviewsState last_navigation_previews_state() const { 620 PreviewsState last_navigation_previews_state() const {
619 return last_navigation_previews_state_; 621 return last_navigation_previews_state_;
620 } 622 }
621 623
622 bool has_focused_editable_element() const { 624 bool has_focused_editable_element() const {
623 return has_focused_editable_element_; 625 return has_focused_editable_element_;
624 } 626 }
625 627
628 // Cancels any blocked request for the frame and its subframes.
629 void CancelBlockedRequestsForFrame();
630
626 #if defined(OS_ANDROID) 631 #if defined(OS_ANDROID)
627 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost(); 632 base::android::ScopedJavaLocalRef<jobject> GetJavaRenderFrameHost();
628 service_manager::InterfaceProvider* GetJavaInterfaces() override; 633 service_manager::InterfaceProvider* GetJavaInterfaces() override;
629 #endif 634 #endif
630 635
631 protected: 636 protected:
632 friend class RenderFrameHostFactory; 637 friend class RenderFrameHostFactory;
633 638
634 // |flags| is a combination of CreateRenderFrameFlags. 639 // |flags| is a combination of CreateRenderFrameFlags.
635 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost 640 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 1170
1166 // NOTE: This must be the last member. 1171 // NOTE: This must be the last member.
1167 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1172 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1168 1173
1169 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1174 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1170 }; 1175 };
1171 1176
1172 } // namespace content 1177 } // namespace content
1173 1178
1174 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.cc ('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