Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: Source/core/loader/TextTrackLoader.h

Issue 135723008: Add CORS support for <link> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add setCrossOriginAccessControl() helper to avoid repetition matching CORS attribute value Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/loader/LinkLoader.cpp ('k') | Source/core/loader/TextTrackLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/LinkLoader.cpp ('k') | Source/core/loader/TextTrackLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698