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 22 matching lines...) Expand all Loading... |
33 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 enum SubstituteDataLoadPolicy { | 37 enum SubstituteDataLoadPolicy { |
38 LoadNormally, | 38 LoadNormally, |
39 ForceSynchronousLoad | 39 ForceSynchronousLoad |
40 }; | 40 }; |
41 | 41 |
42 class SubstituteData { | 42 class SubstituteData { |
43 DISALLOW_ALLOCATION(); | 43 DISALLOW_NEW(); |
44 public: | 44 public: |
45 SubstituteData() | 45 SubstituteData() |
46 : m_substituteDataLoadPolicy(LoadNormally) | 46 : m_substituteDataLoadPolicy(LoadNormally) |
47 { | 47 { |
48 } | 48 } |
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) |
(...skipping 15 matching lines...) Expand all Loading... |
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 } | 75 } |
76 | 76 |
77 #endif // SubstituteData_h | 77 #endif // SubstituteData_h |
78 | 78 |
OLD | NEW |