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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Maintain a refcounted instance of ChromeAppCacheService in the AppCacheNavigationHandleCore instanc… Created 4 years, 1 month 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 593d5755c04a9acec50d2382b64e560eafe1ec75..ec6d667b37cf628a51653ab33f68799e2e21c81c 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -66,6 +66,7 @@
#include "content/common/site_isolation_policy.h"
#include "content/common/swapped_out_messages.h"
#include "content/common/view_messages.h"
+#include "content/public/common/appcache_info.h"
#include "content/public/common/associated_interface_provider.h"
#include "content/public/common/bindings_policy.h"
#include "content/public/common/browser_side_navigation_policy.h"
@@ -1107,6 +1108,7 @@ RenderFrameImpl::RenderFrameImpl(const CreateParams& params)
frame_binding_(this),
host_zoom_binding_(this),
has_accessed_initial_document_(false),
+ appcache_host_id_(kAppCacheNoHostId),
weak_factory_(this) {
// We don't have a service_manager::Connection at this point, so use empty
// identity/specs.
@@ -2853,7 +2855,8 @@ blink::WebApplicationCacheHost* RenderFrameImpl::createApplicationCacheHost(
return NULL;
return new RendererWebApplicationCacheHostImpl(
RenderViewImpl::FromWebView(frame_->view()), client,
- RenderThreadImpl::current()->appcache_dispatcher()->backend_proxy());
+ RenderThreadImpl::current()->appcache_dispatcher()->backend_proxy(),
+ appcache_host_id_);
}
blink::WebWorkerContentSettingsClientProxy*
@@ -4999,8 +5002,13 @@ void RenderFrameImpl::OnCommitNavigation(
request_params.has_user_gesture ? new blink::WebScopedUserGesture(frame_)
: nullptr);
+ appcache_host_id_ = request_params.appcache_host_id;
clamy 2016/11/25 13:32:24 We store the request params in NavigateInternal, s
ananta 2016/11/28 21:36:53 We save the request params in the pending_navigati
clamy 2016/11/30 17:40:22 You can still access them through the DataSource D
ananta 2016/12/01 05:14:59 It looks like the right value is available via the
clamy 2016/12/01 10:02:47 Absolutely, this is what I meant. Sorry my comment
+
NavigateInternal(common_params, StartNavigationParams(), request_params,
std::move(stream_override));
+
+ appcache_host_id_ = kAppCacheNoHostId;
+
browser_side_navigation_pending_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698