| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 virtual void enableViewSourceMode(bool) = 0; | 342 virtual void enableViewSourceMode(bool) = 0; |
| 343 virtual bool isViewSourceModeEnabled() const = 0; | 343 virtual bool isViewSourceModeEnabled() const = 0; |
| 344 | 344 |
| 345 // Sets the referrer for the given request to be the specified URL or | 345 // Sets the referrer for the given request to be the specified URL or |
| 346 // if that is null, then it sets the referrer to the referrer that the | 346 // if that is null, then it sets the referrer to the referrer that the |
| 347 // frame would use for subresources. NOTE: This method also filters | 347 // frame would use for subresources. NOTE: This method also filters |
| 348 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as | 348 // out invalid referrers (e.g., it is invalid to send a HTTPS URL as |
| 349 // the referrer for a HTTP request). | 349 // the referrer for a HTTP request). |
| 350 virtual void setReferrerForRequest(WebURLRequest&, const WebURL&) = 0; | 350 virtual void setReferrerForRequest(WebURLRequest&, const WebURL&) = 0; |
| 351 | 351 |
| 352 // Called to associate the WebURLRequest with this frame. The request | |
| 353 // will be modified to inherit parameters that allow it to be loaded. | |
| 354 // This method ends up triggering WebFrameClient::willSendRequest. | |
| 355 // DEPRECATED: Please use createAssociatedURLLoader instead. | |
| 356 virtual void dispatchWillSendRequest(WebURLRequest&) = 0; | |
| 357 | |
| 358 // Returns an AssociatedURLLoader that is associated with this frame. The | 352 // Returns an AssociatedURLLoader that is associated with this frame. The |
| 359 // loader will, for example, be cancelled when WebFrame::stopLoading is | 353 // loader will, for example, be cancelled when WebFrame::stopLoading is |
| 360 // called. | 354 // called. |
| 361 // | 355 // |
| 362 // FIXME: stopLoading does not yet cancel an associated loader!! | 356 // FIXME: stopLoading does not yet cancel an associated loader!! |
| 363 virtual WebAssociatedURLLoader* createAssociatedURLLoader( | 357 virtual WebAssociatedURLLoader* createAssociatedURLLoader( |
| 364 const WebAssociatedURLLoaderOptions&) = 0; | 358 const WebAssociatedURLLoaderOptions&) = 0; |
| 365 | 359 |
| 366 // Returns the number of registered unload listeners. | 360 // Returns the number of registered unload listeners. |
| 367 virtual unsigned unloadListenerCount() const = 0; | 361 virtual unsigned unloadListenerCount() const = 0; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 WebFrame* m_firstChild; | 463 WebFrame* m_firstChild; |
| 470 WebFrame* m_lastChild; | 464 WebFrame* m_lastChild; |
| 471 | 465 |
| 472 WebFrame* m_opener; | 466 WebFrame* m_opener; |
| 473 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; | 467 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; |
| 474 }; | 468 }; |
| 475 | 469 |
| 476 } // namespace blink | 470 } // namespace blink |
| 477 | 471 |
| 478 #endif | 472 #endif |
| OLD | NEW |