OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 typedef String ErrorString; | 62 typedef String ErrorString; |
63 | 63 |
64 class InspectorPageAgent : public InspectorBaseAgent<InspectorPageAgent>, public
InspectorBackendDispatcher::PageCommandHandler { | 64 class InspectorPageAgent : public InspectorBaseAgent<InspectorPageAgent>, public
InspectorBackendDispatcher::PageCommandHandler { |
65 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); | 65 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); |
66 public: | 66 public: |
67 enum ResourceType { | 67 enum ResourceType { |
68 DocumentResource, | 68 DocumentResource, |
69 StylesheetResource, | 69 StylesheetResource, |
70 ImageResource, | 70 ImageResource, |
71 Font, | 71 FontResource, |
| 72 MediaResource, |
72 ScriptResource, | 73 ScriptResource, |
| 74 TextTrackResource, |
73 XHRResource, | 75 XHRResource, |
74 WebSocketResource, | 76 WebSocketResource, |
75 OtherResource | 77 OtherResource |
76 }; | 78 }; |
77 | 79 |
78 static PassOwnPtr<InspectorPageAgent> create(InstrumentingAgents*, Page*, In
spectorCompositeState*, InjectedScriptManager*, InspectorClient*, InspectorOverl
ay*); | 80 static PassOwnPtr<InspectorPageAgent> create(InstrumentingAgents*, Page*, In
spectorCompositeState*, InjectedScriptManager*, InspectorClient*, InspectorOverl
ay*); |
79 | 81 |
80 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc
oded); | 82 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc
oded); |
81 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text
EncodingName, bool withBase64Encode, String* result); | 83 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text
EncodingName, bool withBase64Encode, String* result); |
82 | 84 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 bool m_emulateViewportEnabled; | 211 bool m_emulateViewportEnabled; |
210 RefPtr<GeolocationPosition> m_geolocationPosition; | 212 RefPtr<GeolocationPosition> m_geolocationPosition; |
211 RefPtr<GeolocationPosition> m_platformGeolocationPosition; | 213 RefPtr<GeolocationPosition> m_platformGeolocationPosition; |
212 }; | 214 }; |
213 | 215 |
214 | 216 |
215 } // namespace WebCore | 217 } // namespace WebCore |
216 | 218 |
217 | 219 |
218 #endif // !defined(InspectorPagerAgent_h) | 220 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |