OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/navigation_params.h" | 5 #include "content/common/navigation_params.h" |
6 | 6 |
7 #include "base/memory/ref_counted_memory.h" | 7 #include "base/memory/ref_counted_memory.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 CommonNavigationParams::CommonNavigationParams() | 10 CommonNavigationParams::CommonNavigationParams() |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 : is_post(is_post), | 43 : is_post(is_post), |
44 extra_headers(extra_headers) { | 44 extra_headers(extra_headers) { |
45 if (post_data) { | 45 if (post_data) { |
46 browser_initiated_post_data.assign( | 46 browser_initiated_post_data.assign( |
47 post_data->front(), post_data->front() + post_data->size()); | 47 post_data->front(), post_data->front() + post_data->size()); |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 RequestNavigationParams::~RequestNavigationParams() {} | 51 RequestNavigationParams::~RequestNavigationParams() {} |
52 | 52 |
| 53 BeginNavigationParams::BeginNavigationParams() |
| 54 : load_flags(0), |
| 55 has_user_gesture(false) { |
| 56 } |
| 57 |
| 58 BeginNavigationParams::BeginNavigationParams(std::string method, |
| 59 std::string headers, |
| 60 int load_flags, |
| 61 bool has_user_gesture) |
| 62 : method(method), |
| 63 headers(headers), |
| 64 load_flags(load_flags), |
| 65 has_user_gesture(has_user_gesture) { |
| 66 } |
| 67 |
53 CommitNavigationParams::CommitNavigationParams() | 68 CommitNavigationParams::CommitNavigationParams() |
54 : is_overriding_user_agent(false) { | 69 : is_overriding_user_agent(false) { |
55 } | 70 } |
56 | 71 |
57 CommitNavigationParams::CommitNavigationParams(const PageState& page_state, | 72 CommitNavigationParams::CommitNavigationParams(const PageState& page_state, |
58 bool is_overriding_user_agent, | 73 bool is_overriding_user_agent, |
59 base::TimeTicks navigation_start) | 74 base::TimeTicks navigation_start) |
60 : page_state(page_state), | 75 : page_state(page_state), |
61 is_overriding_user_agent(is_overriding_user_agent), | 76 is_overriding_user_agent(is_overriding_user_agent), |
62 browser_navigation_start(navigation_start) { | 77 browser_navigation_start(navigation_start) { |
63 } | 78 } |
64 | 79 |
65 CommitNavigationParams::~CommitNavigationParams() {} | 80 CommitNavigationParams::~CommitNavigationParams() {} |
66 | 81 |
67 } // namespace content | 82 } // namespace content |
OLD | NEW |