OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/common/page_transition_types.h" | 9 #include "content/public/common/page_transition_types.h" |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 66 } |
67 int transferred_request_child_id() const { | 67 int transferred_request_child_id() const { |
68 return transferred_request_child_id_; | 68 return transferred_request_child_id_; |
69 } | 69 } |
70 void set_transferred_request_request_id(int value) { | 70 void set_transferred_request_request_id(int value) { |
71 transferred_request_request_id_ = value; | 71 transferred_request_request_id_ = value; |
72 } | 72 } |
73 int transferred_request_request_id() const { | 73 int transferred_request_request_id() const { |
74 return transferred_request_request_id_; | 74 return transferred_request_request_id_; |
75 } | 75 } |
| 76 void set_allow_download(bool value) { |
| 77 allow_download_ = value; |
| 78 } |
| 79 bool allow_download() const { |
| 80 return allow_download_; |
| 81 } |
76 | 82 |
77 private: | 83 private: |
78 NavigationState(content::PageTransition transition_type, | 84 NavigationState(content::PageTransition transition_type, |
79 bool is_content_initiated, | 85 bool is_content_initiated, |
80 int32 pending_page_id, | 86 int32 pending_page_id, |
81 int pending_history_list_offset); | 87 int pending_history_list_offset); |
82 | 88 |
83 content::PageTransition transition_type_; | 89 content::PageTransition transition_type_; |
84 bool request_committed_; | 90 bool request_committed_; |
85 bool is_content_initiated_; | 91 bool is_content_initiated_; |
86 int32 pending_page_id_; | 92 int32 pending_page_id_; |
87 int pending_history_list_offset_; | 93 int pending_history_list_offset_; |
88 | 94 |
89 bool was_within_same_page_; | 95 bool was_within_same_page_; |
90 int transferred_request_child_id_; | 96 int transferred_request_child_id_; |
91 int transferred_request_request_id_; | 97 int transferred_request_request_id_; |
| 98 bool allow_download_; |
92 | 99 |
93 DISALLOW_COPY_AND_ASSIGN(NavigationState); | 100 DISALLOW_COPY_AND_ASSIGN(NavigationState); |
94 }; | 101 }; |
95 | 102 |
96 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ | 103 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
97 | 104 |
98 } // namespace content | 105 } // namespace content |
OLD | NEW |