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 27 matching lines...) Expand all Loading... |
38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 class KURL; | 42 class KURL; |
43 class MHTMLParser; | 43 class MHTMLParser; |
44 class SharedBuffer; | 44 class SharedBuffer; |
45 | 45 |
46 struct SerializedResource; | 46 struct SerializedResource; |
47 | 47 |
48 class MHTMLArchive : public RefCounted<MHTMLArchive> { | 48 class MHTMLArchive FINAL : public RefCounted<MHTMLArchive> { |
49 public: | 49 public: |
50 static PassRefPtr<MHTMLArchive> create(); | 50 static PassRefPtr<MHTMLArchive> create(); |
51 static PassRefPtr<MHTMLArchive> create(const KURL&, SharedBuffer*); | 51 static PassRefPtr<MHTMLArchive> create(const KURL&, SharedBuffer*); |
52 | 52 |
53 enum EncodingPolicy { | 53 enum EncodingPolicy { |
54 UseDefaultEncoding, | 54 UseDefaultEncoding, |
55 UseBinaryEncoding | 55 UseBinaryEncoding |
56 }; | 56 }; |
57 | 57 |
58 // Binary encoding results in smaller MHTML files but they might not work in
other browsers. | 58 // Binary encoding results in smaller MHTML files but they might not work in
other browsers. |
(...skipping 16 matching lines...) Expand all Loading... |
75 void clearAllSubframeArchivesImpl(Vector<RefPtr<MHTMLArchive> >* clearedArch
ives); | 75 void clearAllSubframeArchivesImpl(Vector<RefPtr<MHTMLArchive> >* clearedArch
ives); |
76 | 76 |
77 RefPtr<ArchiveResource> m_mainResource; | 77 RefPtr<ArchiveResource> m_mainResource; |
78 Vector<RefPtr<ArchiveResource> > m_subresources; | 78 Vector<RefPtr<ArchiveResource> > m_subresources; |
79 Vector<RefPtr<MHTMLArchive> > m_subframeArchives; | 79 Vector<RefPtr<MHTMLArchive> > m_subframeArchives; |
80 }; | 80 }; |
81 | 81 |
82 } | 82 } |
83 | 83 |
84 #endif | 84 #endif |
OLD | NEW |