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 130 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 reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | |
152 | |
153 private: | 151 private: |
154 InspectorResourceAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorC
lient*, InspectorCompositeState*); | 152 InspectorResourceAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorC
lient*, InspectorCompositeState*); |
155 | 153 |
156 void enable(); | 154 void enable(); |
157 | 155 |
158 InspectorPageAgent* m_pageAgent; | 156 InspectorPageAgent* m_pageAgent; |
159 InspectorClient* m_client; | 157 InspectorClient* m_client; |
160 InspectorFrontend::Network* m_frontend; | 158 InspectorFrontend::Network* m_frontend; |
161 String m_userAgentOverride; | 159 String m_userAgentOverride; |
162 OwnPtr<NetworkResourcesData> m_resourcesData; | 160 OwnPtr<NetworkResourcesData> m_resourcesData; |
163 bool m_loadingXHRSynchronously; | 161 bool m_loadingXHRSynchronously; |
164 | 162 |
165 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; | 163 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; |
166 PendingXHRReplayDataMap m_pendingXHRReplayData; | 164 PendingXHRReplayDataMap m_pendingXHRReplayData; |
167 // FIXME: InspectorResourceAgent should now be aware of style recalculation. | 165 // FIXME: InspectorResourceAgent should now be aware of style recalculation. |
168 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; | 166 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; |
169 bool m_isRecalculatingStyle; | 167 bool m_isRecalculatingStyle; |
170 }; | 168 }; |
171 | 169 |
172 } // namespace WebCore | 170 } // namespace WebCore |
173 | 171 |
174 | 172 |
175 #endif // !defined(InspectorResourceAgent_h) | 173 #endif // !defined(InspectorResourceAgent_h) |
OLD | NEW |