| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class OpenedFrameTracker; | 48 class OpenedFrameTracker; |
| 49 class Visitor; | 49 class Visitor; |
| 50 class WebAssociatedURLLoader; | 50 class WebAssociatedURLLoader; |
| 51 struct WebAssociatedURLLoaderOptions; | 51 struct WebAssociatedURLLoaderOptions; |
| 52 class WebElement; | 52 class WebElement; |
| 53 class WebLocalFrame; | 53 class WebLocalFrame; |
| 54 class WebPerformance; | 54 class WebPerformance; |
| 55 class WebRemoteFrame; | 55 class WebRemoteFrame; |
| 56 class WebSecurityOrigin; | 56 class WebSecurityOrigin; |
| 57 class WebString; | 57 class WebString; |
| 58 class WebURL; | |
| 59 class WebURLRequest; | |
| 60 class WebView; | 58 class WebView; |
| 61 enum class WebSandboxFlags; | 59 enum class WebSandboxFlags; |
| 62 struct WebFrameOwnerProperties; | 60 struct WebFrameOwnerProperties; |
| 63 struct WebRect; | 61 struct WebRect; |
| 64 struct WebSize; | 62 struct WebSize; |
| 65 | 63 |
| 66 // Frames may be rendered in process ('local') or out of process ('remote'). | 64 // Frames may be rendered in process ('local') or out of process ('remote'). |
| 67 // A remote frame is always cross-site; a local frame may be either same-site or | 65 // A remote frame is always cross-site; a local frame may be either same-site or |
| 68 // cross-site. | 66 // cross-site. |
| 69 // WebFrame is the base class for both WebLocalFrame and WebRemoteFrame and | 67 // WebFrame is the base class for both WebLocalFrame and WebRemoteFrame and |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // functions once RenderFrame only calls WebLoadFrame::load. | 201 // functions once RenderFrame only calls WebLoadFrame::load. |
| 204 | 202 |
| 205 // Stops any pending loads on the frame and its children. | 203 // Stops any pending loads on the frame and its children. |
| 206 virtual void StopLoading() = 0; | 204 virtual void StopLoading() = 0; |
| 207 | 205 |
| 208 // View-source rendering mode. Set this before loading an URL to cause | 206 // View-source rendering mode. Set this before loading an URL to cause |
| 209 // it to be rendered in view-source mode. | 207 // it to be rendered in view-source mode. |
| 210 virtual void EnableViewSourceMode(bool) = 0; | 208 virtual void EnableViewSourceMode(bool) = 0; |
| 211 virtual bool IsViewSourceModeEnabled() const = 0; | 209 virtual bool IsViewSourceModeEnabled() const = 0; |
| 212 | 210 |
| 213 // Sets the referrer for the given request to be the specified URL or | |
| 214 // if that is null, then it sets the referrer to the referrer that the | |
| 215 // frame would use for subresources. NOTE: This method also filters | |
| 216 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as | |
| 217 // the referrer for a HTTP request). | |
| 218 virtual void SetReferrerForRequest(WebURLRequest&, const WebURL&) = 0; | |
| 219 | |
| 220 // Returns an AssociatedURLLoader that is associated with this frame. The | 211 // Returns an AssociatedURLLoader that is associated with this frame. The |
| 221 // loader will, for example, be cancelled when WebFrame::stopLoading is | 212 // loader will, for example, be cancelled when WebFrame::stopLoading is |
| 222 // called. | 213 // called. |
| 223 // | 214 // |
| 224 // FIXME: stopLoading does not yet cancel an associated loader!! | 215 // FIXME: stopLoading does not yet cancel an associated loader!! |
| 225 virtual WebAssociatedURLLoader* CreateAssociatedURLLoader( | 216 virtual WebAssociatedURLLoader* CreateAssociatedURLLoader( |
| 226 const WebAssociatedURLLoaderOptions&) = 0; | 217 const WebAssociatedURLLoaderOptions&) = 0; |
| 227 | 218 |
| 228 // Returns the number of registered unload listeners. | 219 // Returns the number of registered unload listeners. |
| 229 virtual unsigned UnloadListenerCount() const = 0; | 220 virtual unsigned UnloadListenerCount() const = 0; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 WebFrame* first_child_; | 278 WebFrame* first_child_; |
| 288 WebFrame* last_child_; | 279 WebFrame* last_child_; |
| 289 | 280 |
| 290 WebFrame* opener_; | 281 WebFrame* opener_; |
| 291 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; | 282 std::unique_ptr<OpenedFrameTracker> opened_frame_tracker_; |
| 292 }; | 283 }; |
| 293 | 284 |
| 294 } // namespace blink | 285 } // namespace blink |
| 295 | 286 |
| 296 #endif | 287 #endif |
| OLD | NEW |