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

Side by Side Diff: ios/web/web_state/navigation_context_impl.h

Issue 2759613003: Use SameDocument instead of SamePage term on iOS. (Closed)
Patch Set: Actually fixed tests Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 IOS_WEB_WEB_STATE_NAVIGATION_CONTEXT_IMPL_H_ 5 #ifndef IOS_WEB_WEB_STATE_NAVIGATION_CONTEXT_IMPL_H_
6 #define IOS_WEB_WEB_STATE_NAVIGATION_CONTEXT_IMPL_H_ 6 #define IOS_WEB_WEB_STATE_NAVIGATION_CONTEXT_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ios/web/public/web_state/navigation_context.h" 11 #include "ios/web/public/web_state/navigation_context.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace web { 14 namespace web {
15 15
16 // Tracks information related to a single navigation. 16 // Tracks information related to a single navigation.
17 class NavigationContextImpl : public NavigationContext { 17 class NavigationContextImpl : public NavigationContext {
18 public: 18 public:
19 // Creates navigation context for sucessful navigation to a different page. 19 // Creates navigation context for sucessful navigation to a different page.
20 static std::unique_ptr<NavigationContext> CreateNavigationContext( 20 static std::unique_ptr<NavigationContext> CreateNavigationContext(
21 WebState* web_state, 21 WebState* web_state,
22 const GURL& url); 22 const GURL& url);
23 23
24 // Creates navigation context for sucessful same page navigation. 24 // Creates navigation context for sucessful same page navigation.
25 static std::unique_ptr<NavigationContext> CreateSamePageNavigationContext( 25 static std::unique_ptr<NavigationContext> CreateSameDocumentNavigationContext(
26 WebState* web_state, 26 WebState* web_state,
27 const GURL& url); 27 const GURL& url);
28 28
29 // Creates navigation context for the error page navigation. 29 // Creates navigation context for the error page navigation.
30 static std::unique_ptr<NavigationContext> CreateErrorPageNavigationContext( 30 static std::unique_ptr<NavigationContext> CreateErrorPageNavigationContext(
31 WebState* web_state, 31 WebState* web_state,
32 const GURL& url); 32 const GURL& url);
33 33
34 // NavigationContext overrides: 34 // NavigationContext overrides:
35 WebState* GetWebState() override; 35 WebState* GetWebState() override;
(...skipping 12 matching lines...) Expand all
48 GURL url_; 48 GURL url_;
49 bool is_same_document_ = false; 49 bool is_same_document_ = false;
50 bool is_error_page_ = false; 50 bool is_error_page_ = false;
51 51
52 DISALLOW_COPY_AND_ASSIGN(NavigationContextImpl); 52 DISALLOW_COPY_AND_ASSIGN(NavigationContextImpl);
53 }; 53 };
54 54
55 } // namespace web 55 } // namespace web
56 56
57 #endif // IOS_WEB_WEB_STATE_NAVIGATION_CONTEXT_IMPL_H_ 57 #endif // IOS_WEB_WEB_STATE_NAVIGATION_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/navigation_callbacks_inttest.mm ('k') | ios/web/web_state/navigation_context_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698