| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 49 class TextTrackLoader FINAL : public ResourceOwner<RawResource>, private VTTPars
    erClient { | 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 AtomicString& crossOriginMode); | 
| 60     void cancelLoad(); | 60     void cancelLoad(); | 
| 61 | 61 | 
| 62     enum State { Idle, Loading, Finished, Failed }; | 62     enum State { Idle, Loading, Finished, Failed }; | 
| 63     State loadState() { return m_state; } | 63     State loadState() { return m_state; } | 
| 64 | 64 | 
| 65     void getNewCues(Vector<RefPtr<VTTCue> >& outputCues); | 65     void getNewCues(Vector<RefPtr<VTTCue> >& outputCues); | 
| 66     void getNewRegions(Vector<RefPtr<VTTRegion> >& outputRegions); | 66     void getNewRegions(Vector<RefPtr<VTTRegion> >& outputRegions); | 
| 67 private: | 67 private: | 
| 68 | 68 | 
| 69     // RawResourceClient | 69     // RawResourceClient | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 85     // FIXME: Remove this pointer and get the Document from m_client. | 85     // FIXME: Remove this pointer and get the Document from m_client. | 
| 86     Document& m_document; | 86     Document& m_document; | 
| 87     Timer<TextTrackLoader> m_cueLoadTimer; | 87     Timer<TextTrackLoader> m_cueLoadTimer; | 
| 88     State m_state; | 88     State m_state; | 
| 89     bool m_newCuesAvailable; | 89     bool m_newCuesAvailable; | 
| 90 }; | 90 }; | 
| 91 | 91 | 
| 92 } // namespace WebCore | 92 } // namespace WebCore | 
| 93 | 93 | 
| 94 #endif | 94 #endif | 
| OLD | NEW | 
|---|