| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // a const reference as a header needs to be added for doc.write blocking | 83 // a const reference as a header needs to be added for doc.write blocking |
| 84 // intervention. | 84 // intervention. |
| 85 virtual WebCachePolicy resourceRequestCachePolicy( | 85 virtual WebCachePolicy resourceRequestCachePolicy( |
| 86 ResourceRequest&, | 86 ResourceRequest&, |
| 87 Resource::Type, | 87 Resource::Type, |
| 88 FetchRequest::DeferOption) const; | 88 FetchRequest::DeferOption) const; |
| 89 | 89 |
| 90 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, | 90 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, |
| 91 ResourceLoadPriority, | 91 ResourceLoadPriority, |
| 92 int intraPriorityValue); | 92 int intraPriorityValue); |
| 93 |
| 94 virtual void prepareRequest(unsigned long identifier, ResourceRequest&) {} |
| 95 |
| 93 // The last callback before a request is actually sent to the browser process. | 96 // The last callback before a request is actually sent to the browser process. |
| 94 virtual void dispatchWillSendRequest( | 97 virtual void dispatchWillSendRequest( |
| 95 unsigned long identifier, | 98 unsigned long identifier, |
| 96 ResourceRequest&, | 99 const ResourceRequest&, |
| 97 const ResourceResponse& redirectResponse, | 100 const ResourceResponse& redirectResponse, |
| 98 const FetchInitiatorInfo& = FetchInitiatorInfo()); | 101 const FetchInitiatorInfo& = FetchInitiatorInfo()); |
| 99 virtual void dispatchDidLoadResourceFromMemoryCache( | 102 virtual void dispatchDidLoadResourceFromMemoryCache( |
| 100 unsigned long identifier, | 103 unsigned long identifier, |
| 101 Resource*, | 104 Resource*, |
| 102 WebURLRequest::FrameType, | 105 WebURLRequest::FrameType, |
| 103 WebURLRequest::RequestContext); | 106 WebURLRequest::RequestContext); |
| 104 virtual void dispatchDidReceiveResponse(unsigned long identifier, | 107 virtual void dispatchDidReceiveResponse(unsigned long identifier, |
| 105 const ResourceResponse&, | 108 const ResourceResponse&, |
| 106 WebURLRequest::FrameType, | 109 WebURLRequest::FrameType, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 191 |
| 189 virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; } | 192 virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; } |
| 190 | 193 |
| 191 protected: | 194 protected: |
| 192 FetchContext() {} | 195 FetchContext() {} |
| 193 }; | 196 }; |
| 194 | 197 |
| 195 } // namespace blink | 198 } // namespace blink |
| 196 | 199 |
| 197 #endif | 200 #endif |
| OLD | NEW |