Index: third_party/WebKit/public/web/WebAssociatedURLLoader.h |
diff --git a/third_party/WebKit/Source/core/animation/DocumentTimeline.h b/third_party/WebKit/public/web/WebAssociatedURLLoader.h |
similarity index 69% |
copy from third_party/WebKit/Source/core/animation/DocumentTimeline.h |
copy to third_party/WebKit/public/web/WebAssociatedURLLoader.h |
index 587429596a58e5a3292b5059539dcb5e60503818..388ddf821d4d24f7e113d18200694d780fe51eb5 100644 |
--- a/third_party/WebKit/Source/core/animation/DocumentTimeline.h |
+++ b/third_party/WebKit/public/web/WebAssociatedURLLoader.h |
@@ -1,5 +1,5 @@ |
/* |
- * Copyright (C) 2013 Google Inc. All rights reserved. |
+ * Copyright (C) 2010, 2011 Google Inc. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -28,29 +28,28 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef DocumentTimeline_h |
-#define DocumentTimeline_h |
+#ifndef WebAssociatedURLLoader_h |
+#define WebAssociatedURLLoader_h |
-#include "bindings/core/v8/ScriptWrappable.h" |
-#include "core/CoreExport.h" |
-#include "core/animation/AnimationTimeline.h" |
+#include "public/web/WebAssociatedURLLoaderOptions.h" |
namespace blink { |
-class Document; |
- |
-class CORE_EXPORT DocumentTimeline final : public AnimationTimeline { |
- DEFINE_WRAPPERTYPEINFO(); |
+class WebAssociatedURLLoaderClient; |
+class WebLocalFrameImpl; |
+class WebTaskRunner; |
+class WebURLRequest; |
+// This class is used to implement WebFrame::createAssociatedURLLoader. |
+class WebAssociatedURLLoader { |
public: |
- static DocumentTimeline* create(Document* document) { |
- return new DocumentTimeline(document); |
- } |
- |
- private: |
- DocumentTimeline(Document* document) : AnimationTimeline(document, nullptr) {} |
+ virtual ~WebAssociatedURLLoader() {} |
- friend class AnimationDocumentTimelineTest; |
+ virtual void loadAsynchronously(const WebURLRequest&, |
+ WebAssociatedURLLoaderClient*) = 0; |
+ virtual void cancel() = 0; |
+ virtual void setDefersLoading(bool) = 0; |
+ virtual void setLoadingTaskRunner(WebTaskRunner*) = 0; |
}; |
} // namespace blink |