OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void AllAsyncTasksCanceled(ExecutionContext* context) { | 111 void AllAsyncTasksCanceled(ExecutionContext* context) { |
112 if (ThreadDebugger* debugger = ThreadDebugger::From(ToIsolate(context))) | 112 if (ThreadDebugger* debugger = ThreadDebugger::From(ToIsolate(context))) |
113 debugger->AllAsyncTasksCanceled(); | 113 debugger->AllAsyncTasksCanceled(); |
114 } | 114 } |
115 | 115 |
116 void DidReceiveResourceResponseButCanceled(LocalFrame* frame, | 116 void DidReceiveResourceResponseButCanceled(LocalFrame* frame, |
117 DocumentLoader* loader, | 117 DocumentLoader* loader, |
118 unsigned long identifier, | 118 unsigned long identifier, |
119 const ResourceResponse& r, | 119 const ResourceResponse& r, |
120 Resource* resource) { | 120 Resource* resource) { |
121 didReceiveResourceResponse(frame, identifier, loader, r, resource); | 121 didReceiveResourceResponse(frame->GetDocument(), identifier, loader, r, |
| 122 resource); |
122 } | 123 } |
123 | 124 |
124 void CanceledAfterReceivedResourceResponse(LocalFrame* frame, | 125 void CanceledAfterReceivedResourceResponse(LocalFrame* frame, |
125 DocumentLoader* loader, | 126 DocumentLoader* loader, |
126 unsigned long identifier, | 127 unsigned long identifier, |
127 const ResourceResponse& r, | 128 const ResourceResponse& r, |
128 Resource* resource) { | 129 Resource* resource) { |
129 DidReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); | 130 DidReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); |
130 } | 131 } |
131 | 132 |
132 void ContinueWithPolicyIgnore(LocalFrame* frame, | 133 void ContinueWithPolicyIgnore(LocalFrame* frame, |
133 DocumentLoader* loader, | 134 DocumentLoader* loader, |
134 unsigned long identifier, | 135 unsigned long identifier, |
135 const ResourceResponse& r, | 136 const ResourceResponse& r, |
136 Resource* resource) { | 137 Resource* resource) { |
137 DidReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); | 138 DidReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource); |
138 } | 139 } |
139 | 140 |
140 } // namespace probe | 141 } // namespace probe |
141 } // namespace blink | 142 } // namespace blink |
OLD | NEW |