Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_NAVIGATION_HANDLE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/navigation_handle.h" | 8 #include "content/public/browser/navigation_handle.h" |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 286 private: | 286 private: |
| 287 friend class NavigationHandleImplTest; | 287 friend class NavigationHandleImplTest; |
| 288 | 288 |
| 289 // Used to track the state the navigation is currently in. | 289 // Used to track the state the navigation is currently in. |
| 290 enum State { | 290 enum State { |
| 291 INITIAL = 0, | 291 INITIAL = 0, |
| 292 WILL_SEND_REQUEST, | 292 WILL_SEND_REQUEST, |
| 293 DEFERRING_START, | 293 DEFERRING_START, |
| 294 WILL_REDIRECT_REQUEST, | 294 WILL_REDIRECT_REQUEST, |
| 295 DEFERRING_REDIRECT, | 295 DEFERRING_REDIRECT, |
| 296 CANCELING, | 296 CANCELING_REQUEST, |
| 297 WILL_PROCESS_RESPONSE, | 297 WILL_PROCESS_RESPONSE, |
| 298 DEFERRING_RESPONSE, | 298 DEFERRING_RESPONSE, |
| 299 CANCELING_RESPONSE, | |
|
clamy
2016/12/06 17:09:43
What is the difference between CANCELING_REQUEST &
arthursonzogni
2016/12/07 16:25:02
According to me,
* CANCELLING_REQUEST happens when
| |
| 299 READY_TO_COMMIT, | 300 READY_TO_COMMIT, |
| 300 DID_COMMIT, | 301 DID_COMMIT, |
| 301 DID_COMMIT_ERROR_PAGE, | 302 DID_COMMIT_ERROR_PAGE, |
| 302 }; | 303 }; |
| 303 | 304 |
| 304 NavigationHandleImpl(const GURL& url, | 305 NavigationHandleImpl(const GURL& url, |
| 305 FrameTreeNode* frame_tree_node, | 306 FrameTreeNode* frame_tree_node, |
| 306 bool is_renderer_initiated, | 307 bool is_renderer_initiated, |
| 307 bool is_same_page, | 308 bool is_same_page, |
| 308 bool is_srcdoc, | 309 bool is_srcdoc, |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 431 std::string searchable_form_encoding_; | 432 std::string searchable_form_encoding_; |
| 432 | 433 |
| 433 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; | 434 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; |
| 434 | 435 |
| 435 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); | 436 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); |
| 436 }; | 437 }; |
| 437 | 438 |
| 438 } // namespace content | 439 } // namespace content |
| 439 | 440 |
| 440 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ | 441 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ |
| OLD | NEW |