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

Unified Diff: content/renderer/service_worker/worker_fetch_context_impl.h

Issue 2888333002: Send certificate errors from worker fetch context for off-main-thread-fetch. (Closed)
Patch Set: incorporated kinuko's comment Created 3 years, 7 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 | « chrome/test/data/ssl/unsafe_worker.js ('k') | content/renderer/service_worker/worker_fetch_context_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/service_worker/worker_fetch_context_impl.h
diff --git a/content/renderer/service_worker/worker_fetch_context_impl.h b/content/renderer/service_worker/worker_fetch_context_impl.h
index a99823f7bc7da20e9875e098227f0d01031f78ff..224fc92b10553a75bc85ce73516007373a8c14c6 100644
--- a/content/renderer/service_worker/worker_fetch_context_impl.h
+++ b/content/renderer/service_worker/worker_fetch_context_impl.h
@@ -16,9 +16,14 @@ namespace base {
class SingleThreadTaskRunner;
} // namespace base
+namespace IPC {
+class Message;
+} // namespace IPC
+
namespace content {
class ResourceDispatcher;
+class ThreadSafeSender;
class WorkerFetchContextImpl : public blink::WebWorkerFetchContext,
public mojom::ServiceWorkerWorkerClient {
@@ -35,6 +40,9 @@ class WorkerFetchContextImpl : public blink::WebWorkerFetchContext,
void SetDataSaverEnabled(bool) override;
bool IsDataSaverEnabled() const override;
blink::WebURL FirstPartyForCookies() const override;
+ void DidRunContentWithCertificateErrors(const blink::WebURL& url) override;
+ void DidDisplayContentWithCertificateErrors(
+ const blink::WebURL& url) override;
// mojom::ServiceWorkerWorkerClient implementation:
void SetControllerServiceWorker(int64_t controller_version_id) override;
@@ -47,6 +55,8 @@ class WorkerFetchContextImpl : public blink::WebWorkerFetchContext,
const blink::WebURL& first_party_for_cookies);
private:
+ bool Send(IPC::Message* message);
+
mojom::WorkerURLLoaderFactoryProviderPtrInfo provider_info_;
int service_worker_provider_id_ = kInvalidServiceWorkerProviderId;
bool is_controlled_by_service_worker_ = false;
@@ -62,6 +72,7 @@ class WorkerFetchContextImpl : public blink::WebWorkerFetchContext,
// is called from the browser process via mojo IPC.
int controller_version_id_ = kInvalidServiceWorkerVersionId;
+ scoped_refptr<ThreadSafeSender> thread_safe_sender_;
bool is_data_saver_enabled_ = false;
int parent_frame_id_ = MSG_ROUTING_NONE;
GURL first_party_for_cookies_;
« no previous file with comments | « chrome/test/data/ssl/unsafe_worker.js ('k') | content/renderer/service_worker/worker_fetch_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698