Index: Source/core/inspector/InspectorPageAgent.h |
diff --git a/Source/core/inspector/InspectorPageAgent.h b/Source/core/inspector/InspectorPageAgent.h |
index 8ae27214c2a50c0773dc13982a39f3530bf9c73d..5c4e4f8f49f17a52e9536fe38268a81854fc59ee 100644 |
--- a/Source/core/inspector/InspectorPageAgent.h |
+++ b/Source/core/inspector/InspectorPageAgent.h |
@@ -33,6 +33,7 @@ |
#include "InspectorFrontend.h" |
+#include "core/fetch/TextResourceDecoder.h" |
#include "core/inspector/InspectorBaseAgent.h" |
#include "modules/device_orientation/DeviceOrientationData.h" |
#include "modules/geolocation/GeolocationPosition.h" |
@@ -41,6 +42,7 @@ |
namespace WebCore { |
+class Blob; |
class Resource; |
class DOMWrapperWorld; |
class Document; |
@@ -76,9 +78,10 @@ public: |
static PassOwnPtr<InspectorPageAgent> create(InstrumentingAgents*, Page*, InspectorCompositeState*, InjectedScriptManager*, InspectorClient*, InspectorOverlay*); |
- static bool cachedResourceContent(Resource*, String* result, bool* base64Encoded); |
+ static bool cachedResourceContentOrBlob(Resource*, String* result, bool* base64Encoded, RefPtr<Blob>*, String* textEncodingName); |
static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& textEncodingName, bool withBase64Encode, String* result); |
- static void resourceContent(ErrorString*, Frame*, const KURL&, String* result, bool* base64Encoded); |
+ static void resourceContentOrBlob(ErrorString*, Frame*, const KURL&, String* result, bool* base64Encoded, RefPtr<Blob>*, String* textEncodingName); |
+ static PassRefPtr<TextResourceDecoder> createXHRTextDecoder(const String& mimeType, const String& textEncodingName); |
static PassRefPtr<SharedBuffer> resourceData(Frame*, const KURL&, String* textEncodingName); |
static Resource* cachedResource(Frame*, const KURL&); |
@@ -98,7 +101,7 @@ public: |
virtual void getCookies(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Page::Cookie> >& cookies, WTF::String* cookiesString); |
virtual void deleteCookie(ErrorString*, const String& cookieName, const String& url); |
virtual void getResourceTree(ErrorString*, RefPtr<TypeBuilder::Page::FrameResourceTree>&); |
- virtual void getResourceContent(ErrorString*, const String& frameId, const String& url, String* content, bool* base64Encoded); |
+ virtual void getResourceContent(ErrorString*, const String& frameId, const String& url, PassRefPtr<GetResourceContentCallback>); |
virtual void searchInResource(ErrorString*, const String& frameId, const String& url, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); |
virtual void searchInResources(ErrorString*, const String&, const bool* caseSensitive, const bool* isRegex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchResult> >&); |
virtual void setDocumentContent(ErrorString*, const String& frameId, const String& html); |