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

Side by Side Diff: content/public/browser/navigation_details.h

Issue 135723003: Move DidCommitProvisionalLoad code from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some clean up, ready to start reviewing. Created 6 years, 10 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
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 #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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698