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

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

Issue 347543002: DevTools: Extract CSS resources preloading from css agent to page agent controlled loader. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorCSSAgent.h
diff --git a/Source/core/inspector/InspectorCSSAgent.h b/Source/core/inspector/InspectorCSSAgent.h
index 858bfbea83b72fd2bdb574fdb855132c841e34bb..9b59935ad063b0a823c38f82243fd161d66f8479 100644
--- a/Source/core/inspector/InspectorCSSAgent.h
+++ b/Source/core/inspector/InspectorCSSAgent.h
@@ -100,6 +100,9 @@ public:
{
return adoptPtr(new InspectorCSSAgent(domAgent, pageAgent, resourceAgent));
}
+
+ static void collectAllDocumentStyleSheets(Document*, Vector<CSSStyleSheet*>&);
+
virtual ~InspectorCSSAgent();
bool forcePseudoState(Element*, CSSSelector::PseudoType);
@@ -147,7 +150,9 @@ private:
class SetPropertyTextAction;
class SetRuleSelectorAction;
class AddRuleAction;
- class EnableResourceClient;
+ class InspectorResourceContentLoaderCallback;
+
+ static void collectStyleSheets(CSSStyleSheet*, Vector<CSSStyleSheet*>&);
InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResourceAgent*);
@@ -156,13 +161,10 @@ private:
typedef HashMap<Node*, RefPtr<InspectorStyleSheetForInlineStyle> > NodeToInspectorStyleSheet; // bogus "stylesheets" with elements' inline styles
typedef HashMap<int, unsigned> NodeIdToForcedPseudoState;
- void wasEnabled(PassRefPtr<EnableCallback>);
+ void wasEnabled();
void resetNonPersistentData();
InspectorStyleSheetForInlineStyle* asInspectorStyleSheet(Element* element);
Element* elementForId(ErrorString*, int nodeId);
- void collectAllStyleSheets(Vector<InspectorStyleSheet*>&);
- void collectAllDocumentStyleSheets(Document*, Vector<CSSStyleSheet*>&);
- void collectStyleSheets(CSSStyleSheet*, Vector<CSSStyleSheet*>&);
void updateActiveStyleSheets(Document*, StyleSheetsUpdateType);
void setActiveStyleSheets(Document*, const Vector<CSSStyleSheet*>&, StyleSheetsUpdateType);
@@ -217,7 +219,7 @@ private:
bool m_creatingViaInspectorStyleSheet;
bool m_isSettingStyleSheetText;
- friend class EnableResourceClient;
+ friend class InspectorResourceContentLoaderCallback;
friend class StyleSheetBinder;
};
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698