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

Unified Diff: ios/web/web_state/navigation_context_impl.h

Issue 2838583002: Added Setters to NavigationContextImpl. (Closed)
Patch Set: Rebased Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/web/web_state/navigation_context_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/navigation_context_impl.h
diff --git a/ios/web/web_state/navigation_context_impl.h b/ios/web/web_state/navigation_context_impl.h
index 5756cedf4a711abf6da402cadb8935a7261eae6d..de9a9a763df16c5506a22fa0269e73f40cc1d993 100644
--- a/ios/web/web_state/navigation_context_impl.h
+++ b/ios/web/web_state/navigation_context_impl.h
@@ -18,6 +18,12 @@ namespace web {
class NavigationContextImpl : public NavigationContext {
public:
// Creates navigation context for sucessful navigation to a different page.
+ // Response headers will ne null.
+ static std::unique_ptr<NavigationContextImpl> CreateNavigationContext(
+ WebState* web_state,
+ const GURL& url);
+
+ // Creates navigation context for sucessful navigation to a different page.
static std::unique_ptr<NavigationContextImpl> CreateNavigationContext(
WebState* web_state,
const GURL& url,
@@ -47,6 +53,12 @@ class NavigationContextImpl : public NavigationContext {
net::HttpResponseHeaders* GetResponseHeaders() const override;
~NavigationContextImpl() override;
+ // Setters for navigation context data members.
+ void SetIsSameDocument(bool is_same_document);
+ void SetIsErrorPage(bool is_error_page);
+ void SetResponseHeaders(
+ const scoped_refptr<net::HttpResponseHeaders>& response_headers);
+
private:
NavigationContextImpl(
WebState* web_state,
« no previous file with comments | « no previous file | ios/web/web_state/navigation_context_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698