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

Unified Diff: content/child/request_extra_data.cc

Issue 193723003: Identify service worker version at main resource load time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: content/child/request_extra_data.cc
diff --git a/content/child/request_extra_data.cc b/content/child/request_extra_data.cc
index ba9789d6f49583beed257904b7a43006f662963c..64000aae3a57587014ace5729c38cafe43852faf 100644
--- a/content/child/request_extra_data.cc
+++ b/content/child/request_extra_data.cc
@@ -3,11 +3,45 @@
// found in the LICENSE file.
#include "content/child/request_extra_data.h"
+#include "content/common/service_worker/service_worker_types.h"
+#include "ipc/ipc_message.h"
using blink::WebString;
namespace content {
+RequestExtraData::RequestExtraData()
+ : webkit_glue::WebURLRequestExtraDataImpl(blink::WebString(),
+ false),
+ visibility_state_(blink::WebPageVisibilityStateVisible),
+ render_frame_id_(MSG_ROUTING_NONE),
+ is_main_frame_(false),
+ parent_is_main_frame_(false),
+ parent_render_frame_id_(-1),
+ allow_download_(true),
+ transition_type_(PAGE_TRANSITION_LINK),
+ should_replace_current_entry_(false),
+ transferred_request_child_id_(-1),
+ transferred_request_request_id_(-1),
+ service_worker_provider_id_(kInvalidServiceWorkerProviderId) {
+}
+
+RequestExtraData::RequestExtraData(int provider_id)
+ : webkit_glue::WebURLRequestExtraDataImpl(blink::WebString(),
+ false),
+ visibility_state_(blink::WebPageVisibilityStateVisible),
+ render_frame_id_(MSG_ROUTING_NONE),
+ is_main_frame_(false),
+ parent_is_main_frame_(false),
+ parent_render_frame_id_(-1),
+ allow_download_(true),
+ transition_type_(PAGE_TRANSITION_LINK),
+ should_replace_current_entry_(false),
+ transferred_request_child_id_(-1),
+ transferred_request_request_id_(-1),
+ service_worker_provider_id_(provider_id) {
+}
+
RequestExtraData::RequestExtraData(
blink::WebPageVisibilityState visibility_state,
const WebString& custom_user_agent,

Powered by Google App Engine
This is Rietveld 408576698