OLD | NEW |
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 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_DETAILS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_DETAILS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_DETAILS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_DETAILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/navigation_type.h" | 10 #include "content/public/browser/navigation_type.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // True if the navigation was in-page. This means that the active entry's | 44 // True if the navigation was in-page. This means that the active entry's |
45 // URL and the |previous_url| are the same except for reference fragments. | 45 // URL and the |previous_url| are the same except for reference fragments. |
46 bool is_in_page; | 46 bool is_in_page; |
47 | 47 |
48 // True when the main frame was navigated. False means the navigation was a | 48 // True when the main frame was navigated. False means the navigation was a |
49 // sub-frame. | 49 // sub-frame. |
50 bool is_main_frame; | 50 bool is_main_frame; |
51 | 51 |
52 // When the committed load is a web page from the renderer, this string | 52 // When the committed load is a web page from the renderer, this string |
53 // specifies the security state if the page is secure. | 53 // specifies the security state if the page is secure. |
54 // See ViewHostMsg_FrameNavigate_Params.security_info, where it comes from. | 54 // See FrameHostMsg_DidCommitProvisionalLoad_Params.security_info, where it |
55 // Use SSLManager::DeserializeSecurityInfo to decode it. | 55 // comes from. Use SSLManager::DeserializeSecurityInfo to decode it. |
56 std::string serialized_security_info; | 56 std::string serialized_security_info; |
57 | 57 |
58 // Returns whether the main frame navigated to a different page (e.g., not | 58 // Returns whether the main frame navigated to a different page (e.g., not |
59 // scrolling to a fragment inside the current page). We often need this logic | 59 // scrolling to a fragment inside the current page). We often need this logic |
60 // for showing or hiding something. | 60 // for showing or hiding something. |
61 bool is_navigation_to_different_page() const { | 61 bool is_navigation_to_different_page() const { |
62 return is_main_frame && !is_in_page; | 62 return is_main_frame && !is_in_page; |
63 } | 63 } |
64 | 64 |
65 // The HTTP status code for this entry.. | 65 // The HTTP status code for this entry.. |
(...skipping 15 matching lines...) Expand all Loading... |
81 // count items were removed from the back of the list. | 81 // count items were removed from the back of the list. |
82 bool from_front; | 82 bool from_front; |
83 | 83 |
84 // Number of items removed. | 84 // Number of items removed. |
85 int count; | 85 int count; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace content | 88 } // namespace content |
89 | 89 |
90 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_DETAILS_H_ | 90 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_DETAILS_H_ |
OLD | NEW |