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

Side by Side Diff: third_party/WebKit/Source/web/WebDataSourceImpl.h

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from battre@. Created 4 years, 6 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 bool hasUnreachableURL() const override; 59 bool hasUnreachableURL() const override;
60 WebURL unreachableURL() const override; 60 WebURL unreachableURL() const override;
61 void appendRedirect(const WebURL&) override; 61 void appendRedirect(const WebURL&) override;
62 void redirectChain(WebVector<WebURL>&) const override; 62 void redirectChain(WebVector<WebURL>&) const override;
63 bool isClientRedirect() const override; 63 bool isClientRedirect() const override;
64 bool replacesCurrentHistoryItem() const override; 64 bool replacesCurrentHistoryItem() const override;
65 WebNavigationType navigationType() const override; 65 WebNavigationType navigationType() const override;
66 ExtraData* getExtraData() const override; 66 ExtraData* getExtraData() const override;
67 void setExtraData(ExtraData*) override; 67 void setExtraData(ExtraData*) override;
68 void setNavigationStartTime(double) override; 68 void setNavigationStartTime(double) override;
69 void setSubresourceFilter(WebDocumentSubresourceFilter*) override;
Mike West 2016/06/01 13:43:18 Please add a comment about the lifetime/ownership
engedy 2016/06/02 23:07:19 Just to make sure we are on the same page, there i
69 70
70 static WebNavigationType toWebNavigationType(NavigationType); 71 static WebNavigationType toWebNavigationType(NavigationType);
71 72
72 DECLARE_VIRTUAL_TRACE(); 73 DECLARE_VIRTUAL_TRACE();
73 74
74 private: 75 private:
75 WebDataSourceImpl(LocalFrame*, const ResourceRequest&, const SubstituteData& ); 76 WebDataSourceImpl(LocalFrame*, const ResourceRequest&, const SubstituteData& );
76 ~WebDataSourceImpl() override; 77 ~WebDataSourceImpl() override;
77 void detachFromFrame() override; 78 void detachFromFrame() override;
78 String debugName() const override { return "WebDataSourceImpl"; } 79 String debugName() const override { return "WebDataSourceImpl"; }
79 80
80 // Mutable because the const getters will magically sync these to the 81 // Mutable because the const getters will magically sync these to the
81 // latest version from WebKit. 82 // latest version from WebKit.
82 mutable WrappedResourceRequest m_originalRequestWrapper; 83 mutable WrappedResourceRequest m_originalRequestWrapper;
83 mutable WrappedResourceRequest m_requestWrapper; 84 mutable WrappedResourceRequest m_requestWrapper;
84 mutable WrappedResourceResponse m_responseWrapper; 85 mutable WrappedResourceResponse m_responseWrapper;
85 86
86 OwnPtr<ExtraData> m_extraData; 87 OwnPtr<ExtraData> m_extraData;
87 }; 88 };
88 89
89 } // namespace blink 90 } // namespace blink
90 91
91 #endif // WebDataSourceImpl_h 92 #endif // WebDataSourceImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698