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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 144 // Called from other agents. |
| 145 void setHostId(const String&); |
145 bool fetchResourceContent(LocalFrame*, const KURL&, String* content, bool* b
ase64Encoded); | 146 bool fetchResourceContent(LocalFrame*, const KURL&, String* content, bool* b
ase64Encoded); |
146 | 147 |
147 private: | 148 private: |
148 InspectorResourceAgent(InspectorPageAgent*); | 149 InspectorResourceAgent(InspectorPageAgent*); |
149 | 150 |
150 void enable(); | 151 void enable(); |
151 | 152 |
152 InspectorPageAgent* m_pageAgent; | 153 InspectorPageAgent* m_pageAgent; |
153 InspectorFrontend::Network* m_frontend; | 154 InspectorFrontend::Network* m_frontend; |
154 String m_userAgentOverride; | 155 String m_userAgentOverride; |
| 156 String m_hostId; |
155 OwnPtr<NetworkResourcesData> m_resourcesData; | 157 OwnPtr<NetworkResourcesData> m_resourcesData; |
156 | 158 |
157 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; | 159 typedef HashMap<ThreadableLoaderClient*, RefPtr<XHRReplayData> > PendingXHRR
eplayDataMap; |
158 PendingXHRReplayDataMap m_pendingXHRReplayData; | 160 PendingXHRReplayDataMap m_pendingXHRReplayData; |
159 | 161 |
160 typedef HashMap<String, RefPtr<TypeBuilder::Network::Initiator> > FrameNavig
ationInitiatorMap; | 162 typedef HashMap<String, RefPtr<TypeBuilder::Network::Initiator> > FrameNavig
ationInitiatorMap; |
161 FrameNavigationInitiatorMap m_frameNavigationInitiatorMap; | 163 FrameNavigationInitiatorMap m_frameNavigationInitiatorMap; |
162 | 164 |
163 // FIXME: InspectorResourceAgent should now be aware of style recalculation. | 165 // FIXME: InspectorResourceAgent should now be aware of style recalculation. |
164 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; | 166 RefPtr<TypeBuilder::Network::Initiator> m_styleRecalculationInitiator; |
165 bool m_isRecalculatingStyle; | 167 bool m_isRecalculatingStyle; |
166 }; | 168 }; |
167 | 169 |
168 } // namespace WebCore | 170 } // namespace WebCore |
169 | 171 |
170 | 172 |
171 #endif // !defined(InspectorResourceAgent_h) | 173 #endif // !defined(InspectorResourceAgent_h) |
OLD | NEW |