Chromium Code Reviews| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 68 virtual bool isLiveContext() { return false; } | 68 virtual bool isLiveContext() { return false; } |
| 69 virtual void countClientHintsDPR() {} | 69 virtual void countClientHintsDPR() {} |
| 70 virtual void countClientHintsResourceWidth() {} | 70 virtual void countClientHintsResourceWidth() {} |
| 71 virtual void countClientHintsViewportWidth() {} | 71 virtual void countClientHintsViewportWidth() {} |
| 72 | 72 |
| 73 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType); | 73 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType); |
| 74 virtual CachePolicy getCachePolicy() const; | 74 virtual CachePolicy getCachePolicy() const; |
| 75 virtual WebCachePolicy resourceRequestCachePolicy( | 75 virtual WebCachePolicy resourceRequestCachePolicy( |
| 76 const ResourceRequest&, | 76 const ResourceRequest&, |
| 77 Resource::Type, | 77 Resource::Type, |
| 78 FetchRequest::DeferOption) const; | 78 FetchRequest::DeferOption, |
| 79 std::pair<AtomicString, AtomicString>&) const; | |
|
Nate Chapin
2016/10/04 20:33:42
Let's just take a non-const ResourceRequest& here
shivanisha
2016/10/05 17:11:55
Sounds good. done.
| |
| 79 | 80 |
| 80 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, | 81 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, |
| 81 ResourceLoadPriority, | 82 ResourceLoadPriority, |
| 82 int intraPriorityValue); | 83 int intraPriorityValue); |
| 83 // The last callback before a request is actually sent to the browser process. | 84 // The last callback before a request is actually sent to the browser process. |
| 84 virtual void dispatchWillSendRequest( | 85 virtual void dispatchWillSendRequest( |
| 85 unsigned long identifier, | 86 unsigned long identifier, |
| 86 ResourceRequest&, | 87 ResourceRequest&, |
| 87 const ResourceResponse& redirectResponse, | 88 const ResourceResponse& redirectResponse, |
| 88 const FetchInitiatorInfo& = FetchInitiatorInfo()); | 89 const FetchInitiatorInfo& = FetchInitiatorInfo()); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 | 163 |
| 163 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } | 164 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } |
| 164 | 165 |
| 165 protected: | 166 protected: |
| 166 FetchContext() {} | 167 FetchContext() {} |
| 167 }; | 168 }; |
| 168 | 169 |
| 169 } // namespace blink | 170 } // namespace blink |
| 170 | 171 |
| 171 #endif | 172 #endif |
| OLD | NEW |