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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 ScriptResource, | 68 ScriptResource, |
69 TextTrackResource, | 69 TextTrackResource, |
70 XHRResource, | 70 XHRResource, |
71 FetchResource, | 71 FetchResource, |
72 EventSourceResource, | 72 EventSourceResource, |
73 WebSocketResource, | 73 WebSocketResource, |
74 OtherResource | 74 OtherResource |
75 }; | 75 }; |
76 | 76 |
77 static PassOwnPtrWillBeRawPtr<InspectorPageAgent> create(LocalFrame* inspect
edFrame, InspectorOverlay*, InspectorResourceContentLoader*); | 77 static PassOwnPtrWillBeRawPtr<InspectorPageAgent> create(LocalFrame* inspect
edFrame, InspectorOverlay*, InspectorResourceContentLoader*); |
78 void setDeferredAgents(InspectorDebuggerAgent*, InspectorCSSAgent*); | 78 void setDebuggerAgent(InspectorDebuggerAgent*); |
79 | 79 |
80 static Vector<Document*> importsForFrame(LocalFrame*); | 80 static Vector<Document*> importsForFrame(LocalFrame*); |
81 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc
oded); | 81 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc
oded); |
82 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text
EncodingName, bool withBase64Encode, String* result); | 82 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text
EncodingName, bool withBase64Encode, String* result); |
83 | 83 |
84 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin
g* textEncodingName); | 84 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin
g* textEncodingName); |
85 static Resource* cachedResource(LocalFrame*, const KURL&); | 85 static Resource* cachedResource(LocalFrame*, const KURL&); |
86 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType); | 86 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType); |
87 static ResourceType cachedResourceType(const Resource&); | 87 static ResourceType cachedResourceType(const Resource&); |
88 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re
source&); | 88 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Re
source&); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 void finishReload(); | 139 void finishReload(); |
140 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co
nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>); | 140 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co
nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>); |
141 | 141 |
142 static bool dataContent(const char* data, unsigned size, const String& textE
ncodingName, bool withBase64Encode, String* result); | 142 static bool dataContent(const char* data, unsigned size, const String& textE
ncodingName, bool withBase64Encode, String* result); |
143 | 143 |
144 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); | 144 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); |
145 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc
alFrame*); | 145 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc
alFrame*); |
146 RawPtrWillBeMember<LocalFrame> m_inspectedFrame; | 146 RawPtrWillBeMember<LocalFrame> m_inspectedFrame; |
147 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 147 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
148 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | |
149 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 148 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
150 long m_lastScriptIdentifier; | 149 long m_lastScriptIdentifier; |
151 String m_pendingScriptToEvaluateOnLoadOnce; | 150 String m_pendingScriptToEvaluateOnLoadOnce; |
152 String m_scriptToEvaluateOnLoadOnce; | 151 String m_scriptToEvaluateOnLoadOnce; |
153 bool m_enabled; | 152 bool m_enabled; |
154 bool m_reloading; | 153 bool m_reloading; |
155 | 154 |
156 RawPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; | 155 RawPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; |
157 }; | 156 }; |
158 | 157 |
159 | 158 |
160 } // namespace blink | 159 } // namespace blink |
161 | 160 |
162 | 161 |
163 #endif // !defined(InspectorPagerAgent_h) | 162 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |