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

Side by Side Diff: content/child/request_extra_data.h

Issue 527713002: [ServiceWorker] Introduce skip_service_worker flag and remove LOAD_BYPASS_CACHE check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce skip_service_worker flag Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ 5 #ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ 6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "content/public/common/page_transition_types.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int transferred_request_request_id) { 78 int transferred_request_request_id) {
79 transferred_request_request_id_ = transferred_request_request_id; 79 transferred_request_request_id_ = transferred_request_request_id;
80 } 80 }
81 int service_worker_provider_id() const { 81 int service_worker_provider_id() const {
82 return service_worker_provider_id_; 82 return service_worker_provider_id_;
83 } 83 }
84 void set_service_worker_provider_id( 84 void set_service_worker_provider_id(
85 int service_worker_provider_id) { 85 int service_worker_provider_id) {
86 service_worker_provider_id_ = service_worker_provider_id; 86 service_worker_provider_id_ = service_worker_provider_id;
87 } 87 }
88 bool skip_service_worker() const { return skip_service_worker_; }
89 void set_skip_service_worker(bool skip_service_worker) {
90 skip_service_worker_ = skip_service_worker;
91 }
88 // |custom_user_agent| is used to communicate an overriding custom user agent 92 // |custom_user_agent| is used to communicate an overriding custom user agent
89 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no 93 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no
90 // override and an empty string to indicate that there should be no user 94 // override and an empty string to indicate that there should be no user
91 // agent. 95 // agent.
92 const blink::WebString& custom_user_agent() const { 96 const blink::WebString& custom_user_agent() const {
93 return custom_user_agent_; 97 return custom_user_agent_;
94 } 98 }
95 void set_custom_user_agent(const blink::WebString& custom_user_agent) { 99 void set_custom_user_agent(const blink::WebString& custom_user_agent) {
96 custom_user_agent_ = custom_user_agent; 100 custom_user_agent_ = custom_user_agent;
97 } 101 }
(...skipping 10 matching lines...) Expand all
108 bool is_main_frame_; 112 bool is_main_frame_;
109 GURL frame_origin_; 113 GURL frame_origin_;
110 bool parent_is_main_frame_; 114 bool parent_is_main_frame_;
111 int parent_render_frame_id_; 115 int parent_render_frame_id_;
112 bool allow_download_; 116 bool allow_download_;
113 PageTransition transition_type_; 117 PageTransition transition_type_;
114 bool should_replace_current_entry_; 118 bool should_replace_current_entry_;
115 int transferred_request_child_id_; 119 int transferred_request_child_id_;
116 int transferred_request_request_id_; 120 int transferred_request_request_id_;
117 int service_worker_provider_id_; 121 int service_worker_provider_id_;
122 bool skip_service_worker_;
118 blink::WebString custom_user_agent_; 123 blink::WebString custom_user_agent_;
119 blink::WebString requested_with_; 124 blink::WebString requested_with_;
120 125
121 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); 126 DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
122 }; 127 };
123 128
124 } // namespace content 129 } // namespace content
125 130
126 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ 131 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_request_handler.cc ('k') | content/child/request_extra_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698