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

Side by Side Diff: public/web/WebDataSource.h

Issue 40323004: Add WebDataSource::appendRedirect for cross-process redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Original patch Created 7 years, 1 month 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
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual const WebURLRequest& request() const = 0; 61 virtual const WebURLRequest& request() const = 0;
62 62
63 // Returns the response associated with this datasource. 63 // Returns the response associated with this datasource.
64 virtual const WebURLResponse& response() const = 0; 64 virtual const WebURLResponse& response() const = 0;
65 65
66 // When this datasource was created as a result of WebFrame::loadData, 66 // When this datasource was created as a result of WebFrame::loadData,
67 // there may be an associated unreachableURL. 67 // there may be an associated unreachableURL.
68 virtual bool hasUnreachableURL() const = 0; 68 virtual bool hasUnreachableURL() const = 0;
69 virtual WebURL unreachableURL() const = 0; 69 virtual WebURL unreachableURL() const = 0;
70 70
71 // Allows the embedder to append redirects to the chain as a navigation
72 // is starting, in case it is being transferred from another process.
73 virtual void appendRedirect(const WebURL&) = 0;
74
71 // Returns all redirects that occurred (both client and server) before 75 // Returns all redirects that occurred (both client and server) before
72 // at last committing the current page. This will contain one entry 76 // at last committing the current page. This will contain one entry
73 // for each intermediate URL, and one entry for the last URL (so if 77 // for each intermediate URL, and one entry for the last URL (so if
74 // there are no redirects, it will contain exactly the current URL, and 78 // there are no redirects, it will contain exactly the current URL, and
75 // if there is one redirect, it will contain the source and destination 79 // if there is one redirect, it will contain the source and destination
76 // URL). 80 // URL).
77 virtual void redirectChain(WebVector<WebURL>&) const = 0; 81 virtual void redirectChain(WebVector<WebURL>&) const = 0;
78 82
79 // Returns whether the navigation associated with this datasource is a 83 // Returns whether the navigation associated with this datasource is a
80 // client redirect. 84 // client redirect.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // the user may have already recorded the original value. 117 // the user may have already recorded the original value.
114 virtual void setNavigationStartTime(double) = 0; 118 virtual void setNavigationStartTime(double) = 0;
115 119
116 protected: 120 protected:
117 ~WebDataSource() { } 121 ~WebDataSource() { }
118 }; 122 };
119 123
120 } // namespace WebKit 124 } // namespace WebKit
121 125
122 #endif 126 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698