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

Side by Side Diff: content/public/browser/render_frame_host.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
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 int max_length) = 0; 217 int max_length) = 0;
218 218
219 // Tell the render frame to enable a set of javascript bindings. The argument 219 // Tell the render frame to enable a set of javascript bindings. The argument
220 // should be a combination of values from BindingsPolicy. 220 // should be a combination of values from BindingsPolicy.
221 virtual void AllowBindings(int binding_flags) = 0; 221 virtual void AllowBindings(int binding_flags) = 0;
222 222
223 // Returns a bitwise OR of bindings types that have been enabled for this 223 // Returns a bitwise OR of bindings types that have been enabled for this
224 // RenderFrame. See BindingsPolicy for details. 224 // RenderFrame. See BindingsPolicy for details.
225 virtual int GetEnabledBindings() const = 0; 225 virtual int GetEnabledBindings() const = 0;
226 226
227 // Causes all new requests for the root RenderFrameHost and its children to
228 // be blocked (not being started) until ResumeBlockedRequestsForFrame is
229 // called.
230 virtual void BlockRequestsForFrame() = 0;
231
232 // Resumes any blocked request for the specified root RenderFrameHost and
233 // child frame hosts.
234 virtual void ResumeBlockedRequestsForFrame() = 0;
235
227 #if defined(OS_ANDROID) 236 #if defined(OS_ANDROID)
228 // Returns an InterfaceProvider for Java-implemented interfaces that are 237 // Returns an InterfaceProvider for Java-implemented interfaces that are
229 // scoped to this RenderFrameHost. This provides access to interfaces 238 // scoped to this RenderFrameHost. This provides access to interfaces
230 // implemented in Java in the browser process to C++ code in the browser 239 // implemented in Java in the browser process to C++ code in the browser
231 // process. 240 // process.
232 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; 241 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0;
233 #endif // OS_ANDROID 242 #endif // OS_ANDROID
234 243
235 private: 244 private:
236 // This interface should only be implemented inside content. 245 // This interface should only be implemented inside content.
237 friend class RenderFrameHostImpl; 246 friend class RenderFrameHostImpl;
238 RenderFrameHost() {} 247 RenderFrameHost() {}
239 }; 248 };
240 249
241 } // namespace content 250 } // namespace content
242 251
243 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 252 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698