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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 static void ProvideDocumentToContext(FetchContext& context, | 64 static void ProvideDocumentToContext(FetchContext& context, |
65 Document* document) { | 65 Document* document) { |
66 DCHECK(document); | 66 DCHECK(document); |
67 CHECK(context.IsLiveContext()); | 67 CHECK(context.IsLiveContext()); |
68 static_cast<FrameFetchContext&>(context).document_ = document; | 68 static_cast<FrameFetchContext&>(context).document_ = document; |
69 } | 69 } |
70 | 70 |
71 ~FrameFetchContext(); | 71 ~FrameFetchContext(); |
72 | 72 |
73 bool IsLiveContext() { return true; } | 73 bool IsLiveContext() { return true; } |
| 74 WebURLLoader* CreateURLLoader() override; |
74 | 75 |
75 void AddAdditionalRequestHeaders(ResourceRequest&, | 76 void AddAdditionalRequestHeaders(ResourceRequest&, |
76 FetchResourceType) override; | 77 FetchResourceType) override; |
77 WebCachePolicy ResourceRequestCachePolicy( | 78 WebCachePolicy ResourceRequestCachePolicy( |
78 ResourceRequest&, | 79 ResourceRequest&, |
79 Resource::Type, | 80 Resource::Type, |
80 FetchParameters::DeferOption) const override; | 81 FetchParameters::DeferOption) const override; |
81 void DispatchDidChangeResourcePriority(unsigned long identifier, | 82 void DispatchDidChangeResourcePriority(unsigned long identifier, |
82 ResourceLoadPriority, | 83 ResourceLoadPriority, |
83 int intra_priority_value) override; | 84 int intra_priority_value) override; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 201 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
201 // currently leak because ComputedStyle and its data are not on the heap. | 202 // currently leak because ComputedStyle and its data are not on the heap. |
202 // See crbug.com/383860 for details. | 203 // See crbug.com/383860 for details. |
203 WeakMember<Document> document_; | 204 WeakMember<Document> document_; |
204 Member<DocumentLoader> document_loader_; | 205 Member<DocumentLoader> document_loader_; |
205 }; | 206 }; |
206 | 207 |
207 } // namespace blink | 208 } // namespace blink |
208 | 209 |
209 #endif | 210 #endif |
OLD | NEW |