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

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

Issue 267393003: DevTools: Load document (html) content from disk cache in page agent enabling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/InspectorCSSAgent.h
diff --git a/Source/core/inspector/InspectorCSSAgent.h b/Source/core/inspector/InspectorCSSAgent.h
index 4f0f2c180fab7eb9f926dea389139a8e77ee061f..a8c2e90480e6645a717985979396245fde02e5e6 100644
--- a/Source/core/inspector/InspectorCSSAgent.h
+++ b/Source/core/inspector/InspectorCSSAgent.h
@@ -50,7 +50,6 @@ class CSSStyleSheet;
class Document;
class Element;
class InspectorFrontend;
-class InspectorResourceAgent;
class InstrumentingAgents;
class MediaList;
class Node;
@@ -97,9 +96,9 @@ public:
static CSSStyleRule* asCSSStyleRule(CSSRule*);
- static PassOwnPtr<InspectorCSSAgent> create(InspectorDOMAgent* domAgent, InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent)
+ static PassOwnPtr<InspectorCSSAgent> create(InspectorDOMAgent* domAgent, InspectorPageAgent* pageAgent)
{
- return adoptPtr(new InspectorCSSAgent(domAgent, pageAgent, resourceAgent));
+ return adoptPtr(new InspectorCSSAgent(domAgent, pageAgent));
}
virtual ~InspectorCSSAgent();
@@ -110,7 +109,7 @@ public:
virtual void didCommitLoadForMainFrame() OVERRIDE;
virtual void restore() OVERRIDE;
virtual void flushPendingFrontendMessages() OVERRIDE;
- virtual void enable(ErrorString*, PassRefPtr<EnableCallback>) OVERRIDE;
+ virtual void enable(ErrorString*) OVERRIDE;
virtual void disable(ErrorString*) OVERRIDE;
void reset();
void mediaQueryResultChanged();
@@ -138,28 +137,28 @@ public:
PassRefPtr<TypeBuilder::CSS::CSSMedia> buildMediaObject(const MediaList*, MediaListSource, const String&, CSSStyleSheet*);
PassRefPtr<TypeBuilder::Array<TypeBuilder::CSS::CSSMedia> > buildMediaListChain(CSSRule*);
+ static void collectAllDocumentStyleSheets(Document*, Vector<CSSStyleSheet*>&);
+
private:
class StyleSheetAction;
class SetStyleSheetTextAction;
class SetPropertyTextAction;
class SetRuleSelectorAction;
class AddRuleAction;
- class EnableResourceClient;
- InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*, InspectorResourceAgent*);
+ InspectorCSSAgent(InspectorDOMAgent*, InspectorPageAgent*);
typedef HashMap<String, RefPtr<InspectorStyleSheet> > IdToInspectorStyleSheet;
typedef HashMap<String, RefPtr<InspectorStyleSheetForInlineStyle> > IdToInspectorStyleSheetForInlineStyle;
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 bindAllStyleSheets();
+ static void collectStyleSheets(CSSStyleSheet*, Vector<CSSStyleSheet*>&);
void updateActiveStyleSheets(Document*, StyleSheetsUpdateType);
void setActiveStyleSheets(Document*, const Vector<CSSStyleSheet*>&, StyleSheetsUpdateType);
@@ -193,7 +192,6 @@ private:
InspectorFrontend::CSS* m_frontend;
InspectorDOMAgent* m_domAgent;
InspectorPageAgent* m_pageAgent;
- InspectorResourceAgent* m_resourceAgent;
IdToInspectorStyleSheet m_idToInspectorStyleSheet;
IdToInspectorStyleSheetForInlineStyle m_idToInspectorStyleSheetForInlineStyle;
@@ -214,7 +212,6 @@ private:
bool m_creatingViaInspectorStyleSheet;
bool m_isSettingStyleSheetText;
- friend class EnableResourceClient;
friend class StyleSheetBinder;
};

Powered by Google App Engine
This is Rietveld 408576698