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 | 111 |
112 void continueWithPolicyIgnoreImpl(LocalFrame* frame, DocumentLoader* loader, uns
igned long identifier, const ResourceResponse& r) | 112 void continueWithPolicyIgnoreImpl(LocalFrame* frame, DocumentLoader* loader, uns
igned long identifier, const ResourceResponse& r) |
113 { | 113 { |
114 didReceiveResourceResponseButCanceledImpl(frame, loader, identifier, r); | 114 didReceiveResourceResponseButCanceledImpl(frame, loader, identifier, r); |
115 } | 115 } |
116 | 116 |
117 void willDestroyResourceImpl(Resource* cachedResource) | 117 void willDestroyResourceImpl(Resource* cachedResource) |
118 { | 118 { |
119 if (!instrumentingAgentsSet) | 119 if (!instrumentingAgentsSet) |
120 return; | 120 return; |
121 HashSet<InstrumentingAgents*>::iterator end = instrumentingAgentsSet->end(); | 121 for (InstrumentingAgents* instrumentingAgents: *instrumentingAgentsSet) { |
122 for (HashSet<InstrumentingAgents*>::iterator it = instrumentingAgentsSet->be
gin(); it != end; ++it) { | |
123 InstrumentingAgents* instrumentingAgents = *it; | |
124 if (InspectorResourceAgent* inspectorResourceAgent = instrumentingAgents
->inspectorResourceAgent()) | 122 if (InspectorResourceAgent* inspectorResourceAgent = instrumentingAgents
->inspectorResourceAgent()) |
125 inspectorResourceAgent->willDestroyResource(cachedResource); | 123 inspectorResourceAgent->willDestroyResource(cachedResource); |
126 } | 124 } |
127 } | 125 } |
128 | 126 |
129 bool collectingHTMLParseErrorsImpl(InstrumentingAgents* instrumentingAgents) | 127 bool collectingHTMLParseErrorsImpl(InstrumentingAgents* instrumentingAgents) |
130 { | 128 { |
131 if (InspectorInspectorAgent* inspectorAgent = instrumentingAgents->inspector
InspectorAgent()) | 129 if (InspectorInspectorAgent* inspectorAgent = instrumentingAgents->inspector
InspectorAgent()) |
132 return inspectorAgent->hasFrontend(); | 130 return inspectorAgent->hasFrontend(); |
133 return false; | 131 return false; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 262 |
265 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) | 263 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work
erGlobalScope) |
266 { | 264 { |
267 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) | 265 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect
orController()) |
268 return controller->m_instrumentingAgents.get(); | 266 return controller->m_instrumentingAgents.get(); |
269 return 0; | 267 return 0; |
270 } | 268 } |
271 | 269 |
272 } // namespace blink | 270 } // namespace blink |
273 | 271 |
OLD | NEW |