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

Unified Diff: Source/core/inspector/InspectorResourceContentLoader.h

Issue 363823004: DevTools: Do not load css resources content before CSS agent is enabled. (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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorResourceContentLoader.h
diff --git a/Source/core/inspector/InspectorResourceContentLoader.h b/Source/core/inspector/InspectorResourceContentLoader.h
index c781e20d032bd748b5bf527e5e99b93c7f9ede9b..ef27d9d714d5a981f973cf7a0224f62e15996a10 100644
--- a/Source/core/inspector/InspectorResourceContentLoader.h
+++ b/Source/core/inspector/InspectorResourceContentLoader.h
@@ -22,7 +22,7 @@ class InspectorResourceContentLoader FINAL {
WTF_MAKE_FAST_ALLOCATED;
public:
InspectorResourceContentLoader(Page*);
- void addListener(PassOwnPtr<VoidCallback>);
+ void ensureResourcesContentLoaded(PassOwnPtr<VoidCallback>);
~InspectorResourceContentLoader();
bool hasFinished();
void stop();
@@ -32,9 +32,12 @@ private:
void resourceFinished(ResourceClient*);
void checkDone();
+ void start();
Vector<OwnPtr<VoidCallback> > m_callbacks;
bool m_allRequestsStarted;
+ bool m_started;
+ Page* m_page;
HashSet<ResourceClient*> m_pendingResourceClients;
Vector<ResourcePtr<Resource> > m_resources;
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/inspector/InspectorResourceContentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698