| 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 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 : method(method), | 51 : method(method), |
| 52 headers(headers), | 52 headers(headers), |
| 53 load_flags(load_flags), | 53 load_flags(load_flags), |
| 54 has_user_gesture(has_user_gesture) { | 54 has_user_gesture(has_user_gesture) { |
| 55 } | 55 } |
| 56 | 56 |
| 57 CommitNavigationParams::CommitNavigationParams() | 57 CommitNavigationParams::CommitNavigationParams() |
| 58 : is_overriding_user_agent(false) { | 58 : is_overriding_user_agent(false) { |
| 59 } | 59 } |
| 60 | 60 |
| 61 CommitNavigationParams::CommitNavigationParams(const PageState& page_state, | 61 CommitNavigationParams::CommitNavigationParams(bool is_overriding_user_agent, |
| 62 bool is_overriding_user_agent, | |
| 63 base::TimeTicks navigation_start) | 62 base::TimeTicks navigation_start) |
| 64 : page_state(page_state), | 63 : is_overriding_user_agent(is_overriding_user_agent), |
| 65 is_overriding_user_agent(is_overriding_user_agent), | |
| 66 browser_navigation_start(navigation_start) { | 64 browser_navigation_start(navigation_start) { |
| 67 } | 65 } |
| 68 | 66 |
| 69 CommitNavigationParams::~CommitNavigationParams() {} | 67 CommitNavigationParams::~CommitNavigationParams() {} |
| 70 | 68 |
| 69 HistoryNavigationParams::HistoryNavigationParams() |
| 70 : page_id(-1), |
| 71 pending_history_list_offset(-1), |
| 72 current_history_list_offset(-1), |
| 73 current_history_list_length(-1), |
| 74 should_clear_history_list(false) { |
| 75 } |
| 76 |
| 77 HistoryNavigationParams::HistoryNavigationParams( |
| 78 const PageState& page_state, |
| 79 int32 page_id, |
| 80 int pending_history_list_offset, |
| 81 int current_history_list_offset, |
| 82 int current_history_list_length, |
| 83 bool should_clear_history_list) |
| 84 : page_state(page_state), |
| 85 page_id(page_id), |
| 86 pending_history_list_offset(pending_history_list_offset), |
| 87 current_history_list_offset(current_history_list_offset), |
| 88 current_history_list_length(current_history_list_length), |
| 89 should_clear_history_list(should_clear_history_list) { |
| 90 } |
| 91 |
| 92 HistoryNavigationParams::~HistoryNavigationParams() { |
| 93 } |
| 94 |
| 71 } // namespace content | 95 } // namespace content |
| OLD | NEW |