| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Google Inc. All rights reserved. | 4 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 static PassRefPtr<InspectorResource> createCached(unsigned long identifi
er, DocumentLoader*, const CachedResource*); | 74 static PassRefPtr<InspectorResource> createCached(unsigned long identifi
er, DocumentLoader*, const CachedResource*); |
| 75 | 75 |
| 76 ~InspectorResource(); | 76 ~InspectorResource(); |
| 77 | 77 |
| 78 PassRefPtr<InspectorResource> appendRedirect(unsigned long identifier, c
onst KURL& redirectURL); | 78 PassRefPtr<InspectorResource> appendRedirect(unsigned long identifier, c
onst KURL& redirectURL); |
| 79 void updateScriptObject(InspectorFrontend* frontend); | 79 void updateScriptObject(InspectorFrontend* frontend); |
| 80 void releaseScriptObject(InspectorFrontend* frontend); | 80 void releaseScriptObject(InspectorFrontend* frontend); |
| 81 | 81 |
| 82 void updateRequest(const ResourceRequest&); | 82 void updateRequest(const ResourceRequest&); |
| 83 void markAsCached(); |
| 83 void updateResponse(const ResourceResponse&); | 84 void updateResponse(const ResourceResponse&); |
| 84 | 85 |
| 85 void setOverrideContent(const ScriptString& data, Type); | 86 void setOverrideContent(const ScriptString& data, Type); |
| 86 | 87 |
| 87 String sourceString() const; | 88 String sourceString() const; |
| 88 PassRefPtr<SharedBuffer> resourceData(String* textEncodingName) const; | 89 PassRefPtr<SharedBuffer> resourceData(String* textEncodingName) const; |
| 89 | 90 |
| 90 bool isSameLoader(DocumentLoader* loader) const { return loader == m_loa
der; } | 91 bool isSameLoader(DocumentLoader* loader) const { return loader == m_loa
der; } |
| 91 void markMainResource() { m_isMainResource = true; } | 92 void markMainResource() { m_isMainResource = true; } |
| 92 unsigned long identifier() const { return m_identifier; } | 93 unsigned long identifier() const { return m_identifier; } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 Changes m_changes; | 178 Changes m_changes; |
| 178 bool m_isMainResource; | 179 bool m_isMainResource; |
| 179 String m_requestMethod; | 180 String m_requestMethod; |
| 180 String m_requestFormData; | 181 String m_requestFormData; |
| 181 Vector<RefPtr<InspectorResource> > m_redirects; | 182 Vector<RefPtr<InspectorResource> > m_redirects; |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace WebCore | 185 } // namespace WebCore |
| 185 | 186 |
| 186 #endif // InspectorResource_h | 187 #endif // InspectorResource_h |
| OLD | NEW |