| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 virtual void getResponseBody(ErrorString*, const String& requestId, String*
content, bool* base64Encoded) OVERRIDE; | 134 virtual void getResponseBody(ErrorString*, const String& requestId, String*
content, bool* base64Encoded) OVERRIDE; |
| 135 | 135 |
| 136 virtual void replayXHR(ErrorString*, const String& requestId) OVERRIDE; | 136 virtual void replayXHR(ErrorString*, const String& requestId) OVERRIDE; |
| 137 | 137 |
| 138 virtual void canClearBrowserCache(ErrorString*, bool*) OVERRIDE; | 138 virtual void canClearBrowserCache(ErrorString*, bool*) OVERRIDE; |
| 139 virtual void canClearBrowserCookies(ErrorString*, bool*) OVERRIDE; | 139 virtual void canClearBrowserCookies(ErrorString*, bool*) OVERRIDE; |
| 140 virtual void setCacheDisabled(ErrorString*, bool cacheDisabled) OVERRIDE; | 140 virtual void setCacheDisabled(ErrorString*, bool cacheDisabled) OVERRIDE; |
| 141 | 141 |
| 142 virtual void loadResourceForFrontend(ErrorString*, const String& frameId, co
nst String& url, const RefPtr<JSONObject>* requestHeaders, PassRefPtr<LoadResour
ceForFrontendCallback>) OVERRIDE; | 142 virtual void loadResourceForFrontend(ErrorString*, const String& frameId, co
nst String& url, const RefPtr<JSONObject>* requestHeaders, PassRefPtr<LoadResour
ceForFrontendCallback>) OVERRIDE; |
| 143 | 143 |
| 144 // Called from other agents. | |
| 145 bool fetchResourceContent(LocalFrame*, const KURL&, String* content, bool* b
ase64Encoded); | |
| 146 | |
| 147 private: | 144 private: |
| 148 InspectorResourceAgent(InspectorPageAgent*); | 145 InspectorResourceAgent(InspectorPageAgent*); |
| 149 | 146 |
| 150 void enable(); | 147 void enable(); |
| 151 | 148 |
| 152 InspectorPageAgent* m_pageAgent; | 149 InspectorPageAgent* m_pageAgent; |
| 153 InspectorFrontend::Network* m_frontend; | 150 InspectorFrontend::Network* m_frontend; |
| 154 String m_userAgentOverride; | 151 String m_userAgentOverride; |
| 155 OwnPtr<NetworkResourcesData> m_resourcesData; | 152 OwnPtr<NetworkResourcesData> m_resourcesData; |
| 156 | 153 |
| 157 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; | 154 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; |
| 158 PendingXHRReplayDataMap m_pendingXHRReplayData; | 155 PendingXHRReplayDataMap m_pendingXHRReplayData; |
| 159 | 156 |
| 160 typedef HashMap<String, RefPtr<TypeBuilder::Network::Initiator> > FrameNavig
ationInitiatorMap; | 157 typedef HashMap<String, RefPtr<TypeBuilder::Network::Initiator> > FrameNavig
ationInitiatorMap; |
| 161 FrameNavigationInitiatorMap m_frameNavigationInitiatorMap; | 158 FrameNavigationInitiatorMap m_frameNavigationInitiatorMap; |
| 162 | 159 |
| 163 // FIXME: InspectorResourceAgent should now be aware of style recalculation. | 160 // FIXME: InspectorResourceAgent should now be aware of style recalculation. |
| 164 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; | 161 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; |
| 165 bool m_isRecalculatingStyle; | 162 bool m_isRecalculatingStyle; |
| 166 }; | 163 }; |
| 167 | 164 |
| 168 } // namespace WebCore | 165 } // namespace WebCore |
| 169 | 166 |
| 170 | 167 |
| 171 #endif // !defined(InspectorResourceAgent_h) | 168 #endif // !defined(InspectorResourceAgent_h) |
| OLD | NEW |