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

Side by Side Diff: content/browser/frame_host/navigator_impl.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 18 matching lines...) Expand all
29 struct RequestNavigationParams; 29 struct RequestNavigationParams;
30 30
31 // This class is an implementation of Navigator, responsible for managing 31 // This class is an implementation of Navigator, responsible for managing
32 // navigations in regular browser tabs. 32 // navigations in regular browser tabs.
33 class CONTENT_EXPORT NavigatorImpl : public Navigator { 33 class CONTENT_EXPORT NavigatorImpl : public Navigator {
34 public: 34 public:
35 NavigatorImpl(NavigationControllerImpl* navigation_controller, 35 NavigatorImpl(NavigationControllerImpl* navigation_controller,
36 NavigatorDelegate* delegate); 36 NavigatorDelegate* delegate);
37 37
38 // Navigator implementation. 38 // Navigator implementation.
39 virtual NavigationController* GetController() override; 39 NavigationController* GetController() override;
40 virtual void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, 40 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host,
41 const GURL& url, 41 const GURL& url,
42 bool is_transition_navigation) override; 42 bool is_transition_navigation) override;
43 virtual void DidFailProvisionalLoadWithError( 43 void DidFailProvisionalLoadWithError(
44 RenderFrameHostImpl* render_frame_host, 44 RenderFrameHostImpl* render_frame_host,
45 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) 45 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params)
46 override; 46 override;
47 virtual void DidFailLoadWithError( 47 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host,
48 RenderFrameHostImpl* render_frame_host, 48 const GURL& url,
49 const GURL& url, 49 int error_code,
50 int error_code, 50 const base::string16& error_description) override;
51 const base::string16& error_description) override; 51 void DidNavigate(RenderFrameHostImpl* render_frame_host,
52 virtual void DidNavigate( 52 const FrameHostMsg_DidCommitProvisionalLoad_Params&
53 RenderFrameHostImpl* render_frame_host, 53 input_params) override;
54 const FrameHostMsg_DidCommitProvisionalLoad_Params& 54 bool NavigateToPendingEntry(
55 input_params) override;
56 virtual bool NavigateToPendingEntry(
57 RenderFrameHostImpl* render_frame_host, 55 RenderFrameHostImpl* render_frame_host,
58 NavigationController::ReloadType reload_type) override; 56 NavigationController::ReloadType reload_type) override;
59 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 57 void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
60 const GURL& url, 58 const GURL& url,
61 const Referrer& referrer, 59 const Referrer& referrer,
62 WindowOpenDisposition disposition, 60 WindowOpenDisposition disposition,
63 bool should_replace_current_entry, 61 bool should_replace_current_entry,
64 bool user_gesture) override; 62 bool user_gesture) override;
65 virtual void RequestTransferURL( 63 void RequestTransferURL(RenderFrameHostImpl* render_frame_host,
66 RenderFrameHostImpl* render_frame_host, 64 const GURL& url,
67 const GURL& url, 65 const std::vector<GURL>& redirect_chain,
68 const std::vector<GURL>& redirect_chain, 66 const Referrer& referrer,
69 const Referrer& referrer, 67 ui::PageTransition page_transition,
70 ui::PageTransition page_transition, 68 WindowOpenDisposition disposition,
71 WindowOpenDisposition disposition, 69 const GlobalRequestID& transferred_global_request_id,
72 const GlobalRequestID& transferred_global_request_id, 70 bool should_replace_current_entry,
73 bool should_replace_current_entry, 71 bool user_gesture) override;
74 bool user_gesture) override; 72 void OnBeginNavigation(FrameTreeNode* frame_tree_node,
75 virtual void OnBeginNavigation( 73 const FrameHostMsg_BeginNavigation_Params& params,
76 FrameTreeNode* frame_tree_node, 74 const CommonNavigationParams& common_params) override;
77 const FrameHostMsg_BeginNavigation_Params& params, 75 void CommitNavigation(FrameTreeNode* frame_tree_node,
78 const CommonNavigationParams& common_params) override; 76 ResourceResponse* response,
79 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, 77 scoped_ptr<StreamHandle> body) override;
80 ResourceResponse* response, 78 void LogResourceRequestTime(base::TimeTicks timestamp,
81 scoped_ptr<StreamHandle> body) override; 79 const GURL& url) override;
82 virtual void LogResourceRequestTime( 80 void LogBeforeUnloadTime(
83 base::TimeTicks timestamp, const GURL& url) override;
84 virtual void LogBeforeUnloadTime(
85 const base::TimeTicks& renderer_before_unload_start_time, 81 const base::TimeTicks& renderer_before_unload_start_time,
86 const base::TimeTicks& renderer_before_unload_end_time) override; 82 const base::TimeTicks& renderer_before_unload_end_time) override;
87 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) override; 83 void CancelNavigation(FrameTreeNode* frame_tree_node) override;
88 84
89 private: 85 private:
90 // Holds data used to track browser side navigation metrics. 86 // Holds data used to track browser side navigation metrics.
91 struct NavigationMetricsData; 87 struct NavigationMetricsData;
92 88
93 friend class NavigatorTest; 89 friend class NavigatorTest;
94 virtual ~NavigatorImpl(); 90 ~NavigatorImpl() override;
95 91
96 // Navigates to the given entry, which must be the pending entry. Private 92 // Navigates to the given entry, which must be the pending entry. Private
97 // because all callers should use NavigateToPendingEntry. 93 // because all callers should use NavigateToPendingEntry.
98 bool NavigateToEntry( 94 bool NavigateToEntry(
99 RenderFrameHostImpl* render_frame_host, 95 RenderFrameHostImpl* render_frame_host,
100 const NavigationEntryImpl& entry, 96 const NavigationEntryImpl& entry,
101 NavigationController::ReloadType reload_type); 97 NavigationController::ReloadType reload_type);
102 98
103 bool ShouldAssignSiteForURL(const GURL& url); 99 bool ShouldAssignSiteForURL(const GURL& url);
104 100
(...skipping 30 matching lines...) Expand all
135 // different FrameTreeNodes, based on the frame_tree_node_id. 131 // different FrameTreeNodes, based on the frame_tree_node_id.
136 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap; 132 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap;
137 NavigationRequestMap navigation_request_map_; 133 NavigationRequestMap navigation_request_map_;
138 134
139 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); 135 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl);
140 }; 136 };
141 137
142 } // namespace content 138 } // namespace content
143 139
144 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ 140 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl.h ('k') | content/browser/frame_host/popup_menu_helper_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698