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

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

Issue 10780019: PPAPI (Flash): Properly honor Pepper url requests with custom user agents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got rid of unneeded WebKit:: Created 8 years, 5 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 | 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 9
9 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy, 10 RequestExtraData::RequestExtraData(WebReferrerPolicy referrer_policy,
11 const WebString& custom_user_agent,
10 bool is_main_frame, 12 bool is_main_frame,
11 int64 frame_id, 13 int64 frame_id,
12 bool parent_is_main_frame, 14 bool parent_is_main_frame,
13 int64 parent_frame_id, 15 int64 parent_frame_id,
14 bool allow_download, 16 bool allow_download,
15 content::PageTransition transition_type, 17 content::PageTransition transition_type,
16 int transferred_request_child_id, 18 int transferred_request_child_id,
17 int transferred_request_request_id) 19 int transferred_request_request_id)
18 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy), 20 : webkit_glue::WebURLRequestExtraDataImpl(referrer_policy,
21 custom_user_agent),
19 is_main_frame_(is_main_frame), 22 is_main_frame_(is_main_frame),
20 frame_id_(frame_id), 23 frame_id_(frame_id),
21 parent_is_main_frame_(parent_is_main_frame), 24 parent_is_main_frame_(parent_is_main_frame),
22 parent_frame_id_(parent_frame_id), 25 parent_frame_id_(parent_frame_id),
23 allow_download_(allow_download), 26 allow_download_(allow_download),
24 transition_type_(transition_type), 27 transition_type_(transition_type),
25 transferred_request_child_id_(transferred_request_child_id), 28 transferred_request_child_id_(transferred_request_child_id),
26 transferred_request_request_id_(transferred_request_request_id) { 29 transferred_request_request_id_(transferred_request_request_id) {
27 } 30 }
28 31
29 RequestExtraData::~RequestExtraData() { 32 RequestExtraData::~RequestExtraData() {
30 } 33 }
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