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

Unified Diff: Source/core/inspector/InspectorPageAgent.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/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorPageAgent.h
diff --git a/Source/core/inspector/InspectorPageAgent.h b/Source/core/inspector/InspectorPageAgent.h
index 26b1378039c984f859052fc664ecec6844a450fb..4211d39e21ea2ae07b330c0ef47ec3b0c2c18254 100644
--- a/Source/core/inspector/InspectorPageAgent.h
+++ b/Source/core/inspector/InspectorPageAgent.h
@@ -34,6 +34,7 @@
#include "core/InspectorFrontend.h"
#include "core/inspector/InspectorBaseAgent.h"
+#include "core/inspector/InspectorResourceContentLoader.h"
#include "wtf/HashMap.h"
#include "wtf/text/WTFString.h"
@@ -49,6 +50,7 @@ class GraphicsLayer;
class InjectedScriptManager;
class InspectorClient;
class InspectorOverlay;
+class InspectorResourceContentLoader;
class InstrumentingAgents;
class IntSize;
class KURL;
@@ -82,6 +84,7 @@ public:
void setTextAutosizingEnabled(bool);
void setDeviceScaleAdjustment(float);
+ static Vector<Document*> importsForFrame(LocalFrame*);
static bool cachedResourceContent(Resource*, String* result, bool* base64Encoded);
static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& textEncodingName, bool withBase64Encode, String* result);
@@ -160,6 +163,7 @@ public:
const AtomicString& resourceSourceMapURL(const String& url);
bool deviceMetricsOverrideEnabled();
static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*);
+ InspectorResourceContentLoader* resourceContentLoader() { return m_inspectorResourceContentLoader.get(); }
private:
static void resourceContent(ErrorString*, LocalFrame*, const KURL&, String* result, bool* base64Encoded);
@@ -200,6 +204,8 @@ private:
bool m_embedderTextAutosizingEnabled;
double m_embedderFontScaleFactor;
+
+ OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader;
};
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698