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

Unified Diff: third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.h

Issue 2831833002: Move WebAssociatedURLLoaderImpl.* from web/ -> core/export/. (Closed)
Patch Set: Need to BLINK_EXPORT WebAssociatedURLLoader for compile to work on windows. Created 3 years, 8 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
Index: third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.h
diff --git a/third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.h b/third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.h
deleted file mode 100644
index 736af8776e16248f83531fbb8e61b3297709b7f4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WebAssociatedURLLoaderImpl_h
-#define WebAssociatedURLLoaderImpl_h
-
-#include <memory>
-#include "platform/heap/Handle.h"
-#include "platform/wtf/Noncopyable.h"
-#include "platform/wtf/RefPtr.h"
-#include "public/web/WebAssociatedURLLoader.h"
-#include "public/web/WebAssociatedURLLoaderOptions.h"
-
-namespace blink {
-
-class DocumentThreadableLoader;
-class WebAssociatedURLLoaderClient;
-class WebLocalFrameImpl;
-
-// This class is used to implement WebFrame::createAssociatedURLLoader.
-class WebAssociatedURLLoaderImpl final : public WebAssociatedURLLoader {
- WTF_MAKE_NONCOPYABLE(WebAssociatedURLLoaderImpl);
-
- public:
- WebAssociatedURLLoaderImpl(WebLocalFrameImpl*,
- const WebAssociatedURLLoaderOptions&);
- ~WebAssociatedURLLoaderImpl();
-
- void LoadAsynchronously(const WebURLRequest&,
- WebAssociatedURLLoaderClient*) override;
- void Cancel() override;
- void SetDefersLoading(bool) override;
- void SetLoadingTaskRunner(blink::WebTaskRunner*) override;
-
- // Called by |m_observer| to handle destruction of the Document associated
- // with the frame given to the constructor.
- void DocumentDestroyed();
-
- // Called by ClientAdapter to handle completion of loading.
- void ClientAdapterDone();
-
- private:
- class ClientAdapter;
- class Observer;
-
- void CancelLoader();
- void DisposeObserver();
-
- WebAssociatedURLLoaderClient* ReleaseClient() {
- WebAssociatedURLLoaderClient* client = client_;
- client_ = nullptr;
- return client;
- }
-
- WebAssociatedURLLoaderClient* client_;
- WebAssociatedURLLoaderOptions options_;
-
- // An adapter which converts the DocumentThreadableLoaderClient method
- // calls into the WebURLLoaderClient method calls.
- std::unique_ptr<ClientAdapter> client_adapter_;
- Persistent<DocumentThreadableLoader> loader_;
-
- // A ContextLifecycleObserver for cancelling |m_loader| when the Document
- // is detached.
- Persistent<Observer> observer_;
-};
-
-} // namespace blink
-
-#endif
« no previous file with comments | « third_party/WebKit/Source/web/BUILD.gn ('k') | third_party/WebKit/Source/web/WebAssociatedURLLoaderImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698