Commit 918bf69e authored by Julie Jeongeun Kim's avatar Julie Jeongeun Kim Committed by Commit Bot

OnionSoup: Rename RendererWebApplicationCacheHostImpl to ApplicationCacheHostForFrame

This CL is a precursor CL to moving WebApplicationCacheHostImpl
to loader. It renames RendererWebApplicationCacheHostImpl to
ApplicationCacheHostForFrame in order to mirror
ApplicationCacheHostForSharedWorker and prepare merging
WebApplicationCacheHost into ApplicationCacheHost.

Bug: 950159
Change-Id: I31928152f6a58de93d5b6264676cbfc64b1b3de1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1642848Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Julie Jeongeun Kim <jkim@igalia.com>
Cr-Commit-Position: refs/heads/master@{#665850}
parent 35d53fe9
...@@ -5,12 +5,12 @@ import("//third_party/blink/renderer/core/core.gni") ...@@ -5,12 +5,12 @@ import("//third_party/blink/renderer/core/core.gni")
blink_core_sources("exported") { blink_core_sources("exported") {
sources = [ sources = [
"application_cache_host_for_frame.cc",
"application_cache_host_for_frame.h",
"application_cache_host_for_shared_worker.cc", "application_cache_host_for_shared_worker.cc",
"application_cache_host_for_shared_worker.h", "application_cache_host_for_shared_worker.h",
"local_frame_client_impl.cc", "local_frame_client_impl.cc",
"local_frame_client_impl.h", "local_frame_client_impl.h",
"renderer_webapplicationcachehost_impl.cc",
"renderer_webapplicationcachehost_impl.h",
"web_application_cache_host_impl.cc", "web_application_cache_host_impl.cc",
"web_application_cache_host_impl.h", "web_application_cache_host_impl.h",
"web_array_buffer.cc", "web_array_buffer.cc",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "third_party/blink/renderer/core/exported/renderer_webapplicationcachehost_impl.h" #include "third_party/blink/renderer/core/exported/application_cache_host_for_frame.h"
#include "third_party/blink/public/common/loader/url_loader_factory_bundle.h" #include "third_party/blink/public/common/loader/url_loader_factory_bundle.h"
#include "third_party/blink/public/web/web_console_message.h" #include "third_party/blink/public/web/web_console_message.h"
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
namespace blink { namespace blink {
RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl( ApplicationCacheHostForFrame::ApplicationCacheHostForFrame(
WebLocalFrame* web_local_frame, WebLocalFrame* web_local_frame,
WebApplicationCacheHostClient* client, WebApplicationCacheHostClient* client,
const base::UnguessableToken& appcache_host_id, const base::UnguessableToken& appcache_host_id,
...@@ -24,7 +24,7 @@ RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl( ...@@ -24,7 +24,7 @@ RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl(
std::move(task_runner)), std::move(task_runner)),
web_local_frame_(web_local_frame) {} web_local_frame_(web_local_frame) {}
void RendererWebApplicationCacheHostImpl::LogMessage( void ApplicationCacheHostForFrame::LogMessage(
mojom::blink::ConsoleMessageLevel log_level, mojom::blink::ConsoleMessageLevel log_level,
const String& message) { const String& message) {
if (WebTestSupport::IsRunningWebTest()) if (WebTestSupport::IsRunningWebTest())
...@@ -43,7 +43,7 @@ void RendererWebApplicationCacheHostImpl::LogMessage( ...@@ -43,7 +43,7 @@ void RendererWebApplicationCacheHostImpl::LogMessage(
static_cast<mojom::blink::ConsoleMessageLevel>(log_level), message)); static_cast<mojom::blink::ConsoleMessageLevel>(log_level), message));
} }
void RendererWebApplicationCacheHostImpl::SetSubresourceFactory( void ApplicationCacheHostForFrame::SetSubresourceFactory(
network::mojom::blink::URLLoaderFactoryPtr url_loader_factory) { network::mojom::blink::URLLoaderFactoryPtr url_loader_factory) {
auto info = std::make_unique<URLLoaderFactoryBundleInfo>(); auto info = std::make_unique<URLLoaderFactoryBundleInfo>();
info->appcache_factory_info().set_handle( info->appcache_factory_info().set_handle(
...@@ -58,7 +58,7 @@ WebApplicationCacheHost::CreateWebApplicationCacheHostForFrame( ...@@ -58,7 +58,7 @@ WebApplicationCacheHost::CreateWebApplicationCacheHostForFrame(
const base::UnguessableToken& appcache_host_id, const base::UnguessableToken& appcache_host_id,
scoped_refptr<base::SingleThreadTaskRunner> task_runner) { scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
auto renderer_webapplicationcachehost_impl = auto renderer_webapplicationcachehost_impl =
std::make_unique<RendererWebApplicationCacheHostImpl>( std::make_unique<ApplicationCacheHostForFrame>(
frame, client, appcache_host_id, std::move(task_runner)); frame, client, appcache_host_id, std::move(task_runner));
return std::move(renderer_webapplicationcachehost_impl); return std::move(renderer_webapplicationcachehost_impl);
} }
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EXPORTED_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EXPORTED_APPLICATION_CACHE_HOST_FOR_FRAME_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EXPORTED_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_EXPORTED_APPLICATION_CACHE_HOST_FOR_FRAME_H_
#include "third_party/blink/renderer/core/exported/web_application_cache_host_impl.h" #include "third_party/blink/renderer/core/exported/web_application_cache_host_impl.h"
namespace blink { namespace blink {
class WebLocalFrame; class WebLocalFrame;
class RendererWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl { class ApplicationCacheHostForFrame : public WebApplicationCacheHostImpl {
public: public:
RendererWebApplicationCacheHostImpl( ApplicationCacheHostForFrame(
WebLocalFrame* web_frame, WebLocalFrame* web_frame,
blink::WebApplicationCacheHostClient* client, blink::WebApplicationCacheHostClient* client,
const base::UnguessableToken& appcache_host_id, const base::UnguessableToken& appcache_host_id,
...@@ -34,4 +34,4 @@ class RendererWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl { ...@@ -34,4 +34,4 @@ class RendererWebApplicationCacheHostImpl : public WebApplicationCacheHostImpl {
} // namespace blink } // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_EXPORTED_RENDERER_WEBAPPLICATIONCACHEHOST_IMPL_H_ #endif // THIRD_PARTY_BLINK_RENDERER_CORE_EXPORTED_APPLICATION_CACHE_HOST_FOR_FRAME_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment