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

Side by Side Diff: content/public/browser/page_navigator.cc

Issue 21378002: Support POST in browser navaigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: move PageNavigator Destructor body back Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/public/browser/page_navigator.h ('k') | no next file » | 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/public/browser/page_navigator.h" 5 #include "content/public/browser/page_navigator.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 OpenURLParams::OpenURLParams( 9 OpenURLParams::OpenURLParams(
10 const GURL& url, 10 const GURL& url,
11 const Referrer& referrer, 11 const Referrer& referrer,
12 WindowOpenDisposition disposition, 12 WindowOpenDisposition disposition,
13 PageTransition transition, 13 PageTransition transition,
14 bool is_renderer_initiated) 14 bool is_renderer_initiated)
15 : url(url), 15 : url(url),
16 referrer(referrer), 16 referrer(referrer),
17 uses_post(false),
17 source_frame_id(-1), 18 source_frame_id(-1),
18 disposition(disposition), 19 disposition(disposition),
19 transition(transition), 20 transition(transition),
20 is_renderer_initiated(is_renderer_initiated), 21 is_renderer_initiated(is_renderer_initiated),
21 should_replace_current_entry(false), 22 should_replace_current_entry(false),
22 user_gesture(!is_renderer_initiated) { 23 user_gesture(!is_renderer_initiated) {
23 } 24 }
24 25
25 OpenURLParams::OpenURLParams( 26 OpenURLParams::OpenURLParams(
26 const GURL& url, 27 const GURL& url,
27 const Referrer& referrer, 28 const Referrer& referrer,
28 int64 source_frame_id, 29 int64 source_frame_id,
29 WindowOpenDisposition disposition, 30 WindowOpenDisposition disposition,
30 PageTransition transition, 31 PageTransition transition,
31 bool is_renderer_initiated) 32 bool is_renderer_initiated)
32 : url(url), 33 : url(url),
33 referrer(referrer), 34 referrer(referrer),
35 uses_post(false),
34 source_frame_id(source_frame_id), 36 source_frame_id(source_frame_id),
35 disposition(disposition), 37 disposition(disposition),
36 transition(transition), 38 transition(transition),
37 is_renderer_initiated(is_renderer_initiated), 39 is_renderer_initiated(is_renderer_initiated),
38 should_replace_current_entry(false), 40 should_replace_current_entry(false),
39 user_gesture(!is_renderer_initiated) { 41 user_gesture(!is_renderer_initiated) {
40 } 42 }
41 43
42 OpenURLParams::OpenURLParams() 44 OpenURLParams::OpenURLParams()
43 : source_frame_id(-1), 45 : uses_post(false),
46 source_frame_id(-1),
44 disposition(UNKNOWN), 47 disposition(UNKNOWN),
45 transition(PageTransitionFromInt(0)), 48 transition(PageTransitionFromInt(0)),
46 is_renderer_initiated(false), 49 is_renderer_initiated(false),
47 should_replace_current_entry(false), 50 should_replace_current_entry(false),
48 user_gesture(true) { 51 user_gesture(true) {
49 } 52 }
50 53
51 OpenURLParams::~OpenURLParams() { 54 OpenURLParams::~OpenURLParams() {
52 } 55 }
53 56
54 } // namespace content 57 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/page_navigator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698