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

Unified Diff: third_party/WebKit/public/web/WebAssociatedURLLoader.h

Issue 2399463007: AssociatedURLLoader shouldn't derive from WebURLLoader (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698