| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const Referrer& referrer, | 69 const Referrer& referrer, |
| 70 ui::PageTransition page_transition, | 70 ui::PageTransition page_transition, |
| 71 WindowOpenDisposition disposition, | 71 WindowOpenDisposition disposition, |
| 72 const GlobalRequestID& transferred_global_request_id, | 72 const GlobalRequestID& transferred_global_request_id, |
| 73 bool should_replace_current_entry, | 73 bool should_replace_current_entry, |
| 74 bool user_gesture) OVERRIDE; | 74 bool user_gesture) OVERRIDE; |
| 75 virtual void OnBeginNavigation( | 75 virtual void OnBeginNavigation( |
| 76 FrameTreeNode* frame_tree_node, | 76 FrameTreeNode* frame_tree_node, |
| 77 const FrameHostMsg_BeginNavigation_Params& params, | 77 const FrameHostMsg_BeginNavigation_Params& params, |
| 78 const CommonNavigationParams& common_params) OVERRIDE; | 78 const CommonNavigationParams& common_params) OVERRIDE; |
| 79 virtual void CommitNavigation( | 79 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, |
| 80 FrameTreeNode* frame_tree_node, | 80 ResourceResponse* response, |
| 81 const NavigationBeforeCommitInfo& info) OVERRIDE; | 81 scoped_ptr<StreamHandle> body) OVERRIDE; |
| 82 virtual void LogResourceRequestTime( | 82 virtual void LogResourceRequestTime( |
| 83 base::TimeTicks timestamp, const GURL& url) OVERRIDE; | 83 base::TimeTicks timestamp, const GURL& url) OVERRIDE; |
| 84 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) OVERRIDE; | 84 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) OVERRIDE; |
| 85 | 85 |
| 86 private: | 86 private: |
| 87 friend class NavigatorTest; | 87 friend class NavigatorTest; |
| 88 virtual ~NavigatorImpl(); | 88 virtual ~NavigatorImpl(); |
| 89 | 89 |
| 90 // Navigates to the given entry, which must be the pending entry. Private | 90 // Navigates to the given entry, which must be the pending entry. Private |
| 91 // because all callers should use NavigateToPendingEntry. | 91 // because all callers should use NavigateToPendingEntry. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // different FrameTreeNodes, based on the frame_tree_node_id. | 126 // different FrameTreeNodes, based on the frame_tree_node_id. |
| 127 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap; | 127 typedef base::ScopedPtrHashMap<int64, NavigationRequest> NavigationRequestMap; |
| 128 NavigationRequestMap navigation_request_map_; | 128 NavigationRequestMap navigation_request_map_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); | 130 DISALLOW_COPY_AND_ASSIGN(NavigatorImpl); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace content | 133 } // namespace content |
| 134 | 134 |
| 135 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ | 135 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_IMPL_H_ |
| OLD | NEW |