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

Unified Diff: components/html_viewer/web_url_loader_impl.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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 | « components/html_viewer/web_theme_engine_impl.cc ('k') | components/html_viewer/web_url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_url_loader_impl.h
diff --git a/components/html_viewer/web_url_loader_impl.h b/components/html_viewer/web_url_loader_impl.h
deleted file mode 100644
index 09dcf27e1132ec24010234d1d762be051fe6e03c..0000000000000000000000000000000000000000
--- a/components/html_viewer/web_url_loader_impl.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2014 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 COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_
-#define COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "components/html_viewer/mock_web_blob_registry_impl.h"
-#include "mojo/message_pump/handle_watcher.h"
-#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
-#include "third_party/WebKit/public/platform/WebBlobData.h"
-#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
-#include "third_party/WebKit/public/platform/WebURLLoader.h"
-#include "third_party/WebKit/public/platform/WebURLRequest.h"
-
-namespace mojo {
-class URLLoaderFactory;
-}
-
-namespace html_viewer {
-
-// The concrete type of WebURLRequest::ExtraData.
-class WebURLRequestExtraData : public blink::WebURLRequest::ExtraData {
- public:
- WebURLRequestExtraData();
- ~WebURLRequestExtraData() override;
-
- mojo::URLResponsePtr synthetic_response;
-};
-
-class WebURLLoaderImpl : public blink::WebURLLoader {
- public:
- explicit WebURLLoaderImpl(mojo::URLLoaderFactory* url_loader_factory,
- MockWebBlobRegistryImpl* web_blob_registry);
-
- private:
- ~WebURLLoaderImpl() override;
-
- // blink::WebURLLoader methods:
- void loadSynchronously(const blink::WebURLRequest& request,
- blink::WebURLResponse& response,
- blink::WebURLError& error,
- blink::WebData& data) override;
- void loadAsynchronously(const blink::WebURLRequest&,
- blink::WebURLLoaderClient* client) override;
- void cancel() override;
- void setDefersLoading(bool defers_loading) override;
- void setLoadingTaskRunner(blink::WebTaskRunner* web_task_runner) override;
-
- void OnReceivedResponse(const blink::WebURLRequest& request,
- mojo::URLResponsePtr response);
- void OnReceivedError(mojo::URLResponsePtr response);
- void OnReceivedRedirect(const blink::WebURLRequest& request,
- mojo::URLResponsePtr response);
- void OnReceiveWebBlobData(
- const blink::WebURLRequest& request,
- const blink::WebVector<blink::WebBlobData::Item*>& items);
- void ReadMore();
- void WaitToReadMore();
- void OnResponseBodyStreamReady(MojoResult result);
-
- blink::WebURLLoaderClient* client_;
- MockWebBlobRegistryImpl* web_blob_registry_;
- GURL url_;
- blink::WebReferrerPolicy referrer_policy_;
- mojo::URLLoaderPtr url_loader_;
- mojo::ScopedDataPipeConsumerHandle response_body_stream_;
- mojo::common::HandleWatcher handle_watcher_;
-
- base::WeakPtrFactory<WebURLLoaderImpl> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl);
-};
-
-} // namespace html_viewer
-
-#endif // COMPONENTS_HTML_VIEWER_WEB_URL_LOADER_IMPL_H_
« no previous file with comments | « components/html_viewer/web_theme_engine_impl.cc ('k') | components/html_viewer/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698