OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 { | 46 { |
47 } | 47 } |
48 | 48 |
49 bool isValid() const { return m_content != 0; } | 49 bool isValid() const { return m_content != 0; } |
50 | 50 |
51 const SharedBuffer* content() const { return m_content.get(); } | 51 const SharedBuffer* content() const { return m_content.get(); } |
52 const String& mimeType() const { return m_mimeType; } | 52 const String& mimeType() const { return m_mimeType; } |
53 const String& textEncoding() const { return m_textEncoding; } | 53 const String& textEncoding() const { return m_textEncoding; } |
54 const KURL& failingURL() const { return m_failingURL; } | 54 const KURL& failingURL() const { return m_failingURL; } |
55 const KURL& responseURL() const { return m_responseURL; } | 55 const KURL& responseURL() const { return m_responseURL; } |
56 | |
57 void reportMemoryUsage(MemoryObjectInfo*) const; | |
58 | 56 |
59 private: | 57 private: |
60 RefPtr<SharedBuffer> m_content; | 58 RefPtr<SharedBuffer> m_content; |
61 String m_mimeType; | 59 String m_mimeType; |
62 String m_textEncoding; | 60 String m_textEncoding; |
63 KURL m_failingURL; | 61 KURL m_failingURL; |
64 KURL m_responseURL; | 62 KURL m_responseURL; |
65 }; | 63 }; |
66 | 64 |
67 } | 65 } |
68 | 66 |
69 #endif // SubstituteData_h | 67 #endif // SubstituteData_h |
70 | 68 |
OLD | NEW |