| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 SubstituteData(PassRefPtr<SharedBuffer> content, const AtomicString& mimeTyp
e, const AtomicString& textEncoding, const KURL& failingURL, SubstituteDataLoadP
olicy substituteDataLoadPolicy = LoadNormally) | 50 SubstituteData(PassRefPtr<SharedBuffer> content, const AtomicString& mimeTyp
e, const AtomicString& textEncoding, const KURL& failingURL, SubstituteDataLoadP
olicy substituteDataLoadPolicy = LoadNormally) |
| 51 : m_content(content) | 51 : m_content(content) |
| 52 , m_mimeType(mimeType) | 52 , m_mimeType(mimeType) |
| 53 , m_textEncoding(textEncoding) | 53 , m_textEncoding(textEncoding) |
| 54 , m_failingURL(failingURL) | 54 , m_failingURL(failingURL) |
| 55 , m_substituteDataLoadPolicy(substituteDataLoadPolicy) | 55 , m_substituteDataLoadPolicy(substituteDataLoadPolicy) |
| 56 { | 56 { |
| 57 } | 57 } |
| 58 | 58 |
| 59 bool isValid() const { return m_content; } | 59 bool isValid() const { return m_content.get(); } |
| 60 | 60 |
| 61 SharedBuffer* content() const { return m_content.get(); } | 61 SharedBuffer* content() const { return m_content.get(); } |
| 62 const AtomicString& mimeType() const { return m_mimeType; } | 62 const AtomicString& mimeType() const { return m_mimeType; } |
| 63 const AtomicString& textEncoding() const { return m_textEncoding; } | 63 const AtomicString& textEncoding() const { return m_textEncoding; } |
| 64 const KURL& failingURL() const { return m_failingURL; } | 64 const KURL& failingURL() const { return m_failingURL; } |
| 65 bool forceSynchronousLoad() const { return m_substituteDataLoadPolicy == For
ceSynchronousLoad; } | 65 bool forceSynchronousLoad() const { return m_substituteDataLoadPolicy == For
ceSynchronousLoad; } |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 RefPtr<SharedBuffer> m_content; | 68 RefPtr<SharedBuffer> m_content; |
| 69 AtomicString m_mimeType; | 69 AtomicString m_mimeType; |
| 70 AtomicString m_textEncoding; | 70 AtomicString m_textEncoding; |
| 71 KURL m_failingURL; | 71 KURL m_failingURL; |
| 72 SubstituteDataLoadPolicy m_substituteDataLoadPolicy; | 72 SubstituteDataLoadPolicy m_substituteDataLoadPolicy; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif // SubstituteData_h | 77 #endif // SubstituteData_h |
| 78 | 78 |
| OLD | NEW |