OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 class TextTrackLoaderClient : public ResourceOwner<RawResource> { | 40 class TextTrackLoaderClient : public ResourceOwner<RawResource> { |
41 public: | 41 public: |
42 virtual ~TextTrackLoaderClient() { } | 42 virtual ~TextTrackLoaderClient() { } |
43 | 43 |
44 virtual void newCuesAvailable(TextTrackLoader*) = 0; | 44 virtual void newCuesAvailable(TextTrackLoader*) = 0; |
45 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) = 0; | 45 virtual void cueLoadingCompleted(TextTrackLoader*, bool loadingFailed) = 0; |
46 virtual void newRegionsAvailable(TextTrackLoader*) = 0; | 46 virtual void newRegionsAvailable(TextTrackLoader*) = 0; |
47 }; | 47 }; |
48 | 48 |
49 class TextTrackLoader : public ResourceOwner<RawResource>, private VTTParserClie
nt { | 49 class TextTrackLoader FINAL : public ResourceOwner<RawResource>, private VTTPars
erClient { |
50 WTF_MAKE_NONCOPYABLE(TextTrackLoader); | 50 WTF_MAKE_NONCOPYABLE(TextTrackLoader); |
51 WTF_MAKE_FAST_ALLOCATED; | 51 WTF_MAKE_FAST_ALLOCATED; |
52 public: | 52 public: |
53 static PassOwnPtr<TextTrackLoader> create(TextTrackLoaderClient& client, Doc
ument& document) | 53 static PassOwnPtr<TextTrackLoader> create(TextTrackLoaderClient& client, Doc
ument& document) |
54 { | 54 { |
55 return adoptPtr(new TextTrackLoader(client, document)); | 55 return adoptPtr(new TextTrackLoader(client, document)); |
56 } | 56 } |
57 virtual ~TextTrackLoader(); | 57 virtual ~TextTrackLoader(); |
58 | 58 |
59 bool load(const KURL&, const String& crossOriginMode); | 59 bool load(const KURL&, const String& crossOriginMode); |
(...skipping 26 matching lines...) Expand all Loading... |
86 Document& m_document; | 86 Document& m_document; |
87 Timer<TextTrackLoader> m_cueLoadTimer; | 87 Timer<TextTrackLoader> m_cueLoadTimer; |
88 String m_crossOriginMode; | 88 String m_crossOriginMode; |
89 State m_state; | 89 State m_state; |
90 bool m_newCuesAvailable; | 90 bool m_newCuesAvailable; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace WebCore | 93 } // namespace WebCore |
94 | 94 |
95 #endif | 95 #endif |
OLD | NEW |