OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 struct RequestNavigationParams; | 27 struct RequestNavigationParams; |
28 | 28 |
29 // This class is an implementation of Navigator, responsible for managing | 29 // This class is an implementation of Navigator, responsible for managing |
30 // navigations in regular browser tabs. | 30 // navigations in regular browser tabs. |
31 class CONTENT_EXPORT NavigatorImpl : public Navigator { | 31 class CONTENT_EXPORT NavigatorImpl : public Navigator { |
32 public: | 32 public: |
33 NavigatorImpl(NavigationControllerImpl* navigation_controller, | 33 NavigatorImpl(NavigationControllerImpl* navigation_controller, |
34 NavigatorDelegate* delegate); | 34 NavigatorDelegate* delegate); |
35 | 35 |
36 // Navigator implementation. | 36 // Navigator implementation. |
| 37 NavigatorDelegate* GetDelegate() override; |
37 NavigationController* GetController() override; | 38 NavigationController* GetController() override; |
38 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 39 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
39 const GURL& url, | 40 const GURL& url, |
40 bool is_transition_navigation) override; | 41 bool is_transition_navigation) override; |
41 void DidFailProvisionalLoadWithError( | 42 void DidFailProvisionalLoadWithError( |
42 RenderFrameHostImpl* render_frame_host, | 43 RenderFrameHostImpl* render_frame_host, |
43 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) | 44 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) |
44 override; | 45 override; |
45 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host, | 46 void DidFailLoadWithError(RenderFrameHostImpl* render_frame_host, |
46 const GURL& url, | 47 const GURL& url, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // different FrameTreeNodes, based on the frame_tree_node_id. | 144 // different FrameTreeNodes, based on the frame_tree_node_id. |
144 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap; | 145 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap; |
145 NavigationRequestMap navigation_request_map_; | 146 NavigationRequestMap navigation_request_map_; |
146 | 147 |
147 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 148 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
148 }; | 149 }; |
149 | 150 |
150 } // namespace content | 151 } // namespace content |
151 | 152 |
152 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 153 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
OLD | NEW |