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

Side by Side Diff: third_party/WebKit/Source/web/WebDataSourceImpl.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool replacesCurrentHistoryItem() const override; 66 bool replacesCurrentHistoryItem() const override;
67 WebNavigationType navigationType() const override; 67 WebNavigationType navigationType() const override;
68 ExtraData* getExtraData() const override; 68 ExtraData* getExtraData() const override;
69 void setExtraData(ExtraData*) override; 69 void setExtraData(ExtraData*) override;
70 void setNavigationStartTime(double) override; 70 void setNavigationStartTime(double) override;
71 void updateNavigation(double redirectStartTime, 71 void updateNavigation(double redirectStartTime,
72 double redirectEndTime, 72 double redirectEndTime,
73 double fetchStartTime, 73 double fetchStartTime,
74 bool hasRedirect) override; 74 bool hasRedirect) override;
75 void setSubresourceFilter(WebDocumentSubresourceFilter*) override; 75 void setSubresourceFilter(WebDocumentSubresourceFilter*) override;
76 void setSourceLocation(const WebSourceLocation&) override;
77 void resetSourceLocation() override;
76 78
77 static WebNavigationType toWebNavigationType(NavigationType); 79 static WebNavigationType toWebNavigationType(NavigationType);
78 80
79 DECLARE_VIRTUAL_TRACE(); 81 DECLARE_VIRTUAL_TRACE();
80 82
81 private: 83 private:
82 WebDataSourceImpl(LocalFrame*, 84 WebDataSourceImpl(LocalFrame*,
83 const ResourceRequest&, 85 const ResourceRequest&,
84 const SubstituteData&, 86 const SubstituteData&,
85 ClientRedirectPolicy); 87 ClientRedirectPolicy);
86 ~WebDataSourceImpl() override; 88 ~WebDataSourceImpl() override;
87 void detachFromFrame() override; 89 void detachFromFrame() override;
88 String debugName() const override { return "WebDataSourceImpl"; } 90 String debugName() const override { return "WebDataSourceImpl"; }
89 91
90 // Mutable because the const getters will magically sync these to the 92 // Mutable because the const getters will magically sync these to the
91 // latest version from WebKit. 93 // latest version from WebKit.
92 mutable WrappedResourceRequest m_originalRequestWrapper; 94 mutable WrappedResourceRequest m_originalRequestWrapper;
93 mutable WrappedResourceRequest m_requestWrapper; 95 mutable WrappedResourceRequest m_requestWrapper;
94 mutable WrappedResourceResponse m_responseWrapper; 96 mutable WrappedResourceResponse m_responseWrapper;
95 97
96 std::unique_ptr<ExtraData> m_extraData; 98 std::unique_ptr<ExtraData> m_extraData;
97 }; 99 };
98 100
99 } // namespace blink 101 } // namespace blink
100 102
101 #endif // WebDataSourceImpl_h 103 #endif // WebDataSourceImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698