Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: Source/core/inspector/InspectorResourceAgent.cpp

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 return responseObject; 281 return responseObject;
282 } 282 }
283 283
284 InspectorResourceAgent::~InspectorResourceAgent() 284 InspectorResourceAgent::~InspectorResourceAgent()
285 { 285 {
286 if (m_state->getBoolean(ResourceAgentState::resourceAgentEnabled)) { 286 if (m_state->getBoolean(ResourceAgentState::resourceAgentEnabled)) {
287 ErrorString error; 287 ErrorString error;
288 disable(&error); 288 disable(&error);
289 } 289 }
290 #if !ENABLE(OILPAN)
290 ASSERT(!m_instrumentingAgents->inspectorResourceAgent()); 291 ASSERT(!m_instrumentingAgents->inspectorResourceAgent());
292 #endif
293 }
294
295 void InspectorResourceAgent::trace(Visitor* visitor)
296 {
297 visitor->trace(m_pageAgent);
298 InspectorBaseAgent::trace(visitor);
291 } 299 }
292 300
293 void InspectorResourceAgent::willSendRequest(unsigned long identifier, DocumentL oader* loader, ResourceRequest& request, const ResourceResponse& redirectRespons e, const FetchInitiatorInfo& initiatorInfo) 301 void InspectorResourceAgent::willSendRequest(unsigned long identifier, DocumentL oader* loader, ResourceRequest& request, const ResourceResponse& redirectRespons e, const FetchInitiatorInfo& initiatorInfo)
294 { 302 {
295 // Ignore the request initiated internally. 303 // Ignore the request initiated internally.
296 if (initiatorInfo.name == FetchInitiatorTypeNames::internal) 304 if (initiatorInfo.name == FetchInitiatorTypeNames::internal)
297 return; 305 return;
298 String requestId = IdentifiersFactory::requestId(identifier); 306 String requestId = IdentifiersFactory::requestId(identifier);
299 m_resourcesData->resourceCreated(requestId, m_pageAgent->loaderId(loader)); 307 m_resourcesData->resourceCreated(requestId, m_pageAgent->loaderId(loader));
300 308
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) 820 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent)
813 : InspectorBaseAgent<InspectorResourceAgent>("Network") 821 : InspectorBaseAgent<InspectorResourceAgent>("Network")
814 , m_pageAgent(pageAgent) 822 , m_pageAgent(pageAgent)
815 , m_frontend(0) 823 , m_frontend(0)
816 , m_resourcesData(adoptPtr(new NetworkResourcesData())) 824 , m_resourcesData(adoptPtr(new NetworkResourcesData()))
817 , m_isRecalculatingStyle(false) 825 , m_isRecalculatingStyle(false)
818 { 826 {
819 } 827 }
820 828
821 } // namespace WebCore 829 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.h ('k') | Source/core/inspector/InspectorStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698