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

Side by Side Diff: content/common/request_extra_data.cc

Issue 10886047: Pepper: Add a X-Requested-With header to URL requests done for Pepper plugins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « content/common/request_extra_data.h ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/common/request_extra_data.h" 5 #include "content/common/request_extra_data.h"
6 6
7 using WebKit::WebReferrerPolicy; 7 using WebKit::WebReferrerPolicy;
8 using WebKit::WebString; 8 using WebKit::WebString;
9 9
10 namespace content { 10 namespace content {
11 11
12 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy, 12 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy,
13 const WebString& custom_user_agent, 13 const WebString& custom_user_agent,
14 const WebString& requested_with,
14 bool is_main_frame, 15 bool is_main_frame,
15 int64 frame_id, 16 int64 frame_id,
16 bool parent_is_main_frame, 17 bool parent_is_main_frame,
17 int64 parent_frame_id, 18 int64 parent_frame_id,
18 bool allow_download, 19 bool allow_download,
19 PageTransition transition_type, 20 PageTransition transition_type,
20 int transferred_request_child_id, 21 int transferred_request_child_id,
21 int transferred_request_request_id) 22 int transferred_request_request_id)
22 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy, 23 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy,
23 custom_user_agent), 24 custom_user_agent,
25 requested_with),
24 is_main_frame_(is_main_frame), 26 is_main_frame_(is_main_frame),
25 frame_id_(frame_id), 27 frame_id_(frame_id),
26 parent_is_main_frame_(parent_is_main_frame), 28 parent_is_main_frame_(parent_is_main_frame),
27 parent_frame_id_(parent_frame_id), 29 parent_frame_id_(parent_frame_id),
28 allow_download_(allow_download), 30 allow_download_(allow_download),
29 transition_type_(transition_type), 31 transition_type_(transition_type),
30 transferred_request_child_id_(transferred_request_child_id), 32 transferred_request_child_id_(transferred_request_child_id),
31 transferred_request_request_id_(transferred_request_request_id) { 33 transferred_request_request_id_(transferred_request_request_id) {
32 } 34 }
33 35
34 RequestExtraData::~RequestExtraData() { 36 RequestExtraData::~RequestExtraData() {
35 } 37 }
36 38
37 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/common/request_extra_data.h ('k') | content/common/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698