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

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

Issue 2196333002: PlzNavigate: Clear provisional history item on redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timing_api
Patch Set: Rebasing again, Trybot issues. Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/web/WebDataSourceImpl.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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // navigation start is determined in WebCore. But, in some situations, 101 // navigation start is determined in WebCore. But, in some situations,
102 // the embedder might have a better value and can override it here. This 102 // the embedder might have a better value and can override it here. This
103 // should be called before WebFrameClient::didCommitProvisionalLoad. 103 // should be called before WebFrameClient::didCommitProvisionalLoad.
104 // Calling it later may confuse users, because JavaScript may have run and 104 // Calling it later may confuse users, because JavaScript may have run and
105 // the user may have already recorded the original value. 105 // the user may have already recorded the original value.
106 virtual void setNavigationStartTime(double) = 0; 106 virtual void setNavigationStartTime(double) = 0;
107 107
108 // Sets timing and attributes of the navigation. 108 // Sets timing and attributes of the navigation.
109 // Ordinarily, they are determined in WebCore, but when the navigation is 109 // Ordinarily, they are determined in WebCore, but when the navigation is
110 // handled by the client, they can be passed here. 110 // handled by the client, they can be passed here.
111 virtual void updateNavigationTimings(double redirectStartTime, double redire ctEndTime, double fetchStartTime, const WebVector<WebURL>& redirectChain) = 0; 111 virtual void updateNavigation(double redirectStartTime, double redirectEndTi me, double fetchStartTime, const WebVector<WebURL>& redirectChain) = 0;
112 112
113 // Allows the embedder to inject a filter that will be consulted for each 113 // Allows the embedder to inject a filter that will be consulted for each
114 // subsequent subresource load, and gets the final say in deciding whether 114 // subsequent subresource load, and gets the final say in deciding whether
115 // or not to allow the load. The passed-in filter object is deleted when the 115 // or not to allow the load. The passed-in filter object is deleted when the
116 // datasource is destroyed or when a new filter is set. 116 // datasource is destroyed or when a new filter is set.
117 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; 117 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0;
118 118
119 protected: 119 protected:
120 ~WebDataSource() { } 120 ~WebDataSource() { }
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif 125 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDataSourceImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698