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

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

Issue 1257553002: [Proof-of-concept] PlzNavigate and Service Worker Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass navigation_provider_id Created 5 years, 4 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/child/web_url_loader_impl.h" 9 #include "content/child/web_url_loader_impl.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // navigation requests. 107 // navigation requests.
108 scoped_ptr<StreamOverrideParameters> TakeStreamOverrideOwnership() { 108 scoped_ptr<StreamOverrideParameters> TakeStreamOverrideOwnership() {
109 return stream_override_.Pass(); 109 return stream_override_.Pass();
110 } 110 }
111 111
112 void set_stream_override( 112 void set_stream_override(
113 scoped_ptr<StreamOverrideParameters> stream_override) { 113 scoped_ptr<StreamOverrideParameters> stream_override) {
114 stream_override_ = stream_override.Pass(); 114 stream_override_ = stream_override.Pass();
115 } 115 }
116 116
117 // PlzNavigate:
118 int navigation_provider_id() const { return navigation_provider_id_; }
119 void set_navigation_provider_id(int navigation_provider_id) {
120 navigation_provider_id_ = navigation_provider_id;
121 }
122
117 private: 123 private:
118 blink::WebPageVisibilityState visibility_state_; 124 blink::WebPageVisibilityState visibility_state_;
119 int render_frame_id_; 125 int render_frame_id_;
120 bool is_main_frame_; 126 bool is_main_frame_;
121 GURL frame_origin_; 127 GURL frame_origin_;
122 bool parent_is_main_frame_; 128 bool parent_is_main_frame_;
123 int parent_render_frame_id_; 129 int parent_render_frame_id_;
124 bool allow_download_; 130 bool allow_download_;
125 ui::PageTransition transition_type_; 131 ui::PageTransition transition_type_;
126 bool should_replace_current_entry_; 132 bool should_replace_current_entry_;
127 int transferred_request_child_id_; 133 int transferred_request_child_id_;
128 int transferred_request_request_id_; 134 int transferred_request_request_id_;
129 int service_worker_provider_id_; 135 int service_worker_provider_id_;
130 blink::WebString custom_user_agent_; 136 blink::WebString custom_user_agent_;
131 blink::WebString requested_with_; 137 blink::WebString requested_with_;
132 scoped_ptr<StreamOverrideParameters> stream_override_; 138 scoped_ptr<StreamOverrideParameters> stream_override_;
139 int navigation_provider_id_;
133 140
134 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); 141 DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
135 }; 142 };
136 143
137 } // namespace content 144 } // namespace content
138 145
139 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ 146 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698