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

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

Issue 2720763002: PlzNavigate: preserve SourceLocation when navigating (Closed)
Patch Set: Fix rebase compilation issues 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 17 matching lines...) Expand all
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 <memory> 34 #include <memory>
35 35
36 #include "../platform/WebCommon.h" 36 #include "../platform/WebCommon.h"
37 #include "WebNavigationType.h" 37 #include "WebNavigationType.h"
38 #include "WebSourceLocation.h"
38 #include "WebTextDirection.h" 39 #include "WebTextDirection.h"
39 40
40 namespace blink { 41 namespace blink {
41 42
42 class WebDocumentSubresourceFilter; 43 class WebDocumentSubresourceFilter;
43 class WebServiceWorkerNetworkProvider; 44 class WebServiceWorkerNetworkProvider;
44 class WebURL; 45 class WebURL;
45 class WebURLRequest; 46 class WebURLRequest;
46 class WebURLResponse; 47 class WebURLResponse;
47 template <typename T> 48 template <typename T>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0; 125 virtual void setSubresourceFilter(WebDocumentSubresourceFilter*) = 0;
125 126
126 // Allows the embedder to set and return the service worker provider 127 // Allows the embedder to set and return the service worker provider
127 // associated with the data source. The provider may provide the service 128 // associated with the data source. The provider may provide the service
128 // worker that controls the resource loading from this data source. 129 // worker that controls the resource loading from this data source.
129 virtual void setServiceWorkerNetworkProvider( 130 virtual void setServiceWorkerNetworkProvider(
130 std::unique_ptr<WebServiceWorkerNetworkProvider>) = 0; 131 std::unique_ptr<WebServiceWorkerNetworkProvider>) = 0;
131 virtual WebServiceWorkerNetworkProvider* 132 virtual WebServiceWorkerNetworkProvider*
132 getServiceWorkerNetworkProvider() = 0; 133 getServiceWorkerNetworkProvider() = 0;
133 134
135 // PlzNavigate
136 // Allows to specify the SourceLocation that triggered the navigation.
137 virtual void setSourceLocation(const WebSourceLocation&) = 0;
138 virtual void resetSourceLocation() = 0;
139
134 protected: 140 protected:
135 ~WebDataSource() {} 141 ~WebDataSource() {}
136 }; 142 };
137 143
138 } // namespace blink 144 } // namespace blink
139 145
140 #endif 146 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDataSourceImpl.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698