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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h

Issue 2880733002: Partially implement WorkerFetchContext and WorkerThreadableLoadingContext and add virtual tests (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h b/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
index a3e1fdf2fda4c53efb4a232bb5522623063e0e2f..057ad46b9fb7eeeb10dc2fa5e3d1022feb351423 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceRequest.h
@@ -318,6 +318,11 @@ class PLATFORM_EXPORT ResourceRequest final {
}
bool IsSameDocumentNavigation() const { return is_same_document_navigation_; }
+ void SetIsMojoIPCForced(bool is_mojo_ipc_forced) {
+ is_mojo_ipc_forced_ = is_mojo_ipc_forced;
kinuko 2017/05/12 08:41:45 nit: maybe call this method OverrideIPCType() and
horo 2017/05/12 09:06:02 Done.
+ }
+ bool IsMojoIPCForced() const { return is_mojo_ipc_forced_; }
+
private:
const CacheControlHeader& GetCacheControlHeader() const;
@@ -368,6 +373,8 @@ class PLATFORM_EXPORT ResourceRequest final {
RedirectStatus redirect_status_;
double navigation_start_ = 0;
+
+ bool is_mojo_ipc_forced_ = false;
};
struct CrossThreadResourceRequestData {

Powered by Google App Engine
This is Rietveld 408576698