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

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

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: Addressed nate's comments 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 /* 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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebDataSource_h 31 #ifndef WebDataSource_h
32 #define WebDataSource_h 32 #define WebDataSource_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 #include "WebNavigationType.h" 35 #include "WebNavigationType.h"
36 #include "WebSourceLocation.h"
36 #include "WebTextDirection.h" 37 #include "WebTextDirection.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 class WebDocumentSubresourceFilter; 41 class WebDocumentSubresourceFilter;
41 class WebURL; 42 class WebURL;
42 class WebURLRequest; 43 class WebURLRequest;
43 class WebURLResponse; 44 class WebURLResponse;
44 template <typename T> 45 template <typename T>
45 class WebVector; 46 class WebVector;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 double redirectEndTime, 114 double redirectEndTime,
114 double fetchStartTime, 115 double fetchStartTime,
115 bool hasRedirect) = 0; 116 bool hasRedirect) = 0;
116 117
117 // Allows the embedder to inject a filter that will be consulted for each 118 // Allows the embedder to inject a filter that will be consulted for each
118 // subsequent subresource load, and gets the final say in deciding whether 119 // subsequent subresource load, and gets the final say in deciding whether
119 // or not to allow the load. The passed-in filter object is deleted when the 120 // or not to allow the load. The passed-in filter object is deleted when the
120 // datasource is destroyed or when a new filter is set. 121 // datasource is destroyed or when a new filter is set.
121 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; 122 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0;
122 123
124 // PlzNavigate
125 // Allows to specify the SourceLocation that triggered the navigation.
126 virtual void setSourceLocation(const WebSourceLocation&) = 0;
127 virtual void resetSourceLocation() = 0;
128
123 protected: 129 protected:
124 ~WebDataSource() {} 130 ~WebDataSource() {}
125 }; 131 };
126 132
127 } // namespace blink 133 } // namespace blink
128 134
129 #endif 135 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698