OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef InspectorResourceAgent_h | 31 #ifndef InspectorResourceAgent_h |
32 #define InspectorResourceAgent_h | 32 #define InspectorResourceAgent_h |
33 | 33 |
34 #include "InspectorFrontend.h" | 34 #include "InspectorFrontend.h" |
| 35 #include "bindings/v8/ScriptString.h" |
35 #include "core/inspector/InspectorBaseAgent.h" | 36 #include "core/inspector/InspectorBaseAgent.h" |
36 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
37 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
38 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
39 #include "wtf/text/TextPosition.h" | 40 #include "wtf/text/TextPosition.h" |
40 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
41 | 42 |
42 | 43 |
43 namespace WTF { | 44 namespace WTF { |
44 class String; | 45 class String; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void didReceiveData(unsigned long identifier, const char* data, int dataLeng
th, int encodedDataLength); | 100 void didReceiveData(unsigned long identifier, const char* data, int dataLeng
th, int encodedDataLength); |
100 void didFinishLoading(unsigned long identifier, DocumentLoader*, double mono
tonicFinishTime); | 101 void didFinishLoading(unsigned long identifier, DocumentLoader*, double mono
tonicFinishTime); |
101 void didFailLoading(unsigned long identifier, DocumentLoader*, const Resourc
eError&); | 102 void didFailLoading(unsigned long identifier, DocumentLoader*, const Resourc
eError&); |
102 void didCommitLoad(Frame*, DocumentLoader*); | 103 void didCommitLoad(Frame*, DocumentLoader*); |
103 void scriptImported(unsigned long identifier, const String& sourceString); | 104 void scriptImported(unsigned long identifier, const String& sourceString); |
104 void didReceiveScriptResponse(unsigned long identifier); | 105 void didReceiveScriptResponse(unsigned long identifier); |
105 | 106 |
106 void documentThreadableLoaderStartedLoadingForClient(unsigned long identifie
r, ThreadableLoaderClient*); | 107 void documentThreadableLoaderStartedLoadingForClient(unsigned long identifie
r, ThreadableLoaderClient*); |
107 void willLoadXHR(ThreadableLoaderClient*, const String& method, const KURL&,
bool async, PassRefPtr<FormData> body, const HTTPHeaderMap& headers, bool inclu
deCrendentials); | 108 void willLoadXHR(ThreadableLoaderClient*, const String& method, const KURL&,
bool async, PassRefPtr<FormData> body, const HTTPHeaderMap& headers, bool inclu
deCrendentials); |
108 void didFailXHRLoading(ThreadableLoaderClient*); | 109 void didFailXHRLoading(ThreadableLoaderClient*); |
109 void didFinishXHRLoading(ThreadableLoaderClient*, unsigned long identifier,
const String& sourceString, const String&, const String&, unsigned); | 110 void didFinishXHRLoading(ThreadableLoaderClient*, unsigned long identifier,
ScriptString sourceString, const String&, const String&, unsigned); |
110 void didReceiveXHRResponse(unsigned long identifier); | 111 void didReceiveXHRResponse(unsigned long identifier); |
111 void willLoadXHRSynchronously(); | 112 void willLoadXHRSynchronously(); |
112 void didLoadXHRSynchronously(); | 113 void didLoadXHRSynchronously(); |
113 | 114 |
114 void willDestroyCachedResource(CachedResource*); | 115 void willDestroyCachedResource(CachedResource*); |
115 | 116 |
116 void applyUserAgentOverride(String* userAgent); | 117 void applyUserAgentOverride(String* userAgent); |
117 | 118 |
118 // FIXME: InspectorResourceAgent should now be aware of style recalculation. | 119 // FIXME: InspectorResourceAgent should now be aware of style recalculation. |
119 void willRecalculateStyle(Document*); | 120 void willRecalculateStyle(Document*); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 PendingXHRReplayDataMap m_pendingXHRReplayData; | 169 PendingXHRReplayDataMap m_pendingXHRReplayData; |
169 // FIXME: InspectorResourceAgent should now be aware of style recalculation. | 170 // FIXME: InspectorResourceAgent should now be aware of style recalculation. |
170 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; | 171 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; |
171 bool m_isRecalculatingStyle; | 172 bool m_isRecalculatingStyle; |
172 }; | 173 }; |
173 | 174 |
174 } // namespace WebCore | 175 } // namespace WebCore |
175 | 176 |
176 | 177 |
177 #endif // !defined(InspectorResourceAgent_h) | 178 #endif // !defined(InspectorResourceAgent_h) |
OLD | NEW |