| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual void setFrontend(InspectorFrontend*); | 87 virtual void setFrontend(InspectorFrontend*); |
| 88 virtual void clearFrontend(); | 88 virtual void clearFrontend(); |
| 89 virtual void restore(); | 89 virtual void restore(); |
| 90 | 90 |
| 91 static PassRefPtr<InspectorResourceAgent> restore(Page*, InspectorCompositeS
tate*, InspectorFrontend*); | 91 static PassRefPtr<InspectorResourceAgent> restore(Page*, InspectorCompositeS
tate*, InspectorFrontend*); |
| 92 | 92 |
| 93 ~InspectorResourceAgent(); | 93 ~InspectorResourceAgent(); |
| 94 | 94 |
| 95 void willSendRequest(unsigned long identifier, DocumentLoader*, ResourceRequ
est&, const ResourceResponse& redirectResponse); | 95 void willSendRequest(unsigned long identifier, DocumentLoader*, ResourceRequ
est&, const ResourceResponse& redirectResponse); |
| 96 void markResourceAsCached(unsigned long identifier); | 96 void markResourceAsCached(unsigned long identifier); |
| 97 void didReceiveResourceResponse(unsigned long identifier, DocumentLoader* la
oder, const ResourceResponse&, ResourceLoader*); | 97 void didReceiveResourceResponse(unsigned long identifier, DocumentLoader*, c
onst ResourceResponse&, ResourceLoader*); |
| 98 void didReceiveData(unsigned long identifier, const char* data, int dataLeng
th, int encodedDataLength); | 98 void didReceiveData(unsigned long identifier, const char* data, int dataLeng
th, int encodedDataLength); |
| 99 void didFinishLoading(unsigned long identifier, DocumentLoader*, double mono
tonicFinishTime); | 99 void didFinishLoading(unsigned long identifier, DocumentLoader*, double mono
tonicFinishTime); |
| 100 void didFailLoading(unsigned long identifier, DocumentLoader*, const Resourc
eError&); | 100 void didFailLoading(unsigned long identifier, DocumentLoader*, const Resourc
eError&); |
| 101 void didLoadResourceFromMemoryCache(DocumentLoader*, CachedResource*); | 101 void didLoadResourceFromMemoryCache(DocumentLoader*, CachedResource*); |
| 102 void didCommitLoad(Frame*, DocumentLoader*); | 102 void didCommitLoad(Frame*, DocumentLoader*); |
| 103 void scriptImported(unsigned long identifier, const String& sourceString); | 103 void scriptImported(unsigned long identifier, const String& sourceString); |
| 104 void didReceiveScriptResponse(unsigned long identifier); | 104 void didReceiveScriptResponse(unsigned long identifier); |
| 105 | 105 |
| 106 void documentThreadableLoaderStartedLoadingForClient(unsigned long identifie
r, ThreadableLoaderClient*); | 106 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); | 107 void willLoadXHR(ThreadableLoaderClient*, const String& method, const KURL&,
bool async, PassRefPtr<FormData> body, const HTTPHeaderMap& headers, bool inclu
deCrendentials); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 virtual void getResponseBody(ErrorString*, const String& requestId, String*
content, bool* base64Encoded); | 141 virtual void getResponseBody(ErrorString*, const String& requestId, String*
content, bool* base64Encoded); |
| 142 | 142 |
| 143 virtual void replayXHR(ErrorString*, const String& requestId); | 143 virtual void replayXHR(ErrorString*, const String& requestId); |
| 144 | 144 |
| 145 virtual void canClearBrowserCache(ErrorString*, bool*); | 145 virtual void canClearBrowserCache(ErrorString*, bool*); |
| 146 virtual void clearBrowserCache(ErrorString*); | 146 virtual void clearBrowserCache(ErrorString*); |
| 147 virtual void canClearBrowserCookies(ErrorString*, bool*); | 147 virtual void canClearBrowserCookies(ErrorString*, bool*); |
| 148 virtual void clearBrowserCookies(ErrorString*); | 148 virtual void clearBrowserCookies(ErrorString*); |
| 149 virtual void setCacheDisabled(ErrorString*, bool cacheDisabled); | 149 virtual void setCacheDisabled(ErrorString*, bool cacheDisabled); |
| 150 | 150 |
| 151 virtual void loadResourceForFrontend(ErrorString*, const String& frameId, co
nst String& url, PassRefPtr<LoadResourceForFrontendCallback>); |
| 152 |
| 151 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 153 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
| 152 | 154 |
| 153 private: | 155 private: |
| 154 InspectorResourceAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorC
lient*, InspectorCompositeState*); | 156 InspectorResourceAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorC
lient*, InspectorCompositeState*); |
| 155 | 157 |
| 156 void enable(); | 158 void enable(); |
| 157 | 159 |
| 158 InspectorPageAgent* m_pageAgent; | 160 InspectorPageAgent* m_pageAgent; |
| 159 InspectorClient* m_client; | 161 InspectorClient* m_client; |
| 160 InspectorFrontend::Network* m_frontend; | 162 InspectorFrontend::Network* m_frontend; |
| 161 String m_userAgentOverride; | 163 String m_userAgentOverride; |
| 162 OwnPtr<NetworkResourcesData> m_resourcesData; | 164 OwnPtr<NetworkResourcesData> m_resourcesData; |
| 163 bool m_loadingXHRSynchronously; | 165 bool m_loadingXHRSynchronously; |
| 164 | 166 |
| 165 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; | 167 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; |
| 166 PendingXHRReplayDataMap m_pendingXHRReplayData; | 168 PendingXHRReplayDataMap m_pendingXHRReplayData; |
| 167 // FIXME: InspectorResourceAgent should now be aware of style recalculation. | 169 // FIXME: InspectorResourceAgent should now be aware of style recalculation. |
| 168 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; | 170 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; |
| 169 bool m_isRecalculatingStyle; | 171 bool m_isRecalculatingStyle; |
| 170 }; | 172 }; |
| 171 | 173 |
| 172 } // namespace WebCore | 174 } // namespace WebCore |
| 173 | 175 |
| 174 | 176 |
| 175 #endif // !defined(InspectorResourceAgent_h) | 177 #endif // !defined(InspectorResourceAgent_h) |
| OLD | NEW |