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

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

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 19 matching lines...) Expand all
30 30
31 #ifndef WebDataSourceImpl_h 31 #ifndef WebDataSourceImpl_h
32 #define WebDataSourceImpl_h 32 #define WebDataSourceImpl_h
33 33
34 #include "core/loader/DocumentLoader.h" 34 #include "core/loader/DocumentLoader.h"
35 #include "platform/exported/WrappedResourceRequest.h" 35 #include "platform/exported/WrappedResourceRequest.h"
36 #include "platform/exported/WrappedResourceResponse.h" 36 #include "platform/exported/WrappedResourceResponse.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "platform/weborigin/KURL.h" 38 #include "platform/weborigin/KURL.h"
39 #include "public/web/WebDataSource.h" 39 #include "public/web/WebDataSource.h"
40 #include "web/WebPluginLoadObserver.h"
41 #include "wtf/OwnPtr.h" 40 #include "wtf/OwnPtr.h"
42 #include "wtf/PassOwnPtr.h" 41 #include "wtf/PassOwnPtr.h"
43 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
44 43
45 namespace blink { 44 namespace blink {
46 45
47 class WebDataSourceImpl final : public DocumentLoader, public WebDataSource { 46 class WebDataSourceImpl final : public DocumentLoader, public WebDataSource {
48 public: 47 public:
49 static PassRefPtrWillBeRawPtr<WebDataSourceImpl> create(LocalFrame*, const R esourceRequest&, const SubstituteData&); 48 static PassRefPtrWillBeRawPtr<WebDataSourceImpl> create(LocalFrame*, const R esourceRequest&, const SubstituteData&);
50 49
(...skipping 12 matching lines...) Expand all
63 void redirectChain(WebVector<WebURL>&) const override; 62 void redirectChain(WebVector<WebURL>&) const override;
64 bool isClientRedirect() const override; 63 bool isClientRedirect() const override;
65 bool replacesCurrentHistoryItem() const override; 64 bool replacesCurrentHistoryItem() const override;
66 WebNavigationType navigationType() const override; 65 WebNavigationType navigationType() const override;
67 ExtraData* extraData() const override; 66 ExtraData* extraData() const override;
68 void setExtraData(ExtraData*) override; 67 void setExtraData(ExtraData*) override;
69 void setNavigationStartTime(double) override; 68 void setNavigationStartTime(double) override;
70 69
71 static WebNavigationType toWebNavigationType(NavigationType); 70 static WebNavigationType toWebNavigationType(NavigationType);
72 71
73 PassOwnPtrWillBeRawPtr<WebPluginLoadObserver> releasePluginLoadObserver() { return m_pluginLoadObserver.release(); }
74 static void setNextPluginLoadObserver(PassOwnPtrWillBeRawPtr<WebPluginLoadOb server>);
75
76 DECLARE_VIRTUAL_TRACE(); 72 DECLARE_VIRTUAL_TRACE();
77 73
78 private: 74 private:
79 WebDataSourceImpl(LocalFrame*, const ResourceRequest&, const SubstituteData& ); 75 WebDataSourceImpl(LocalFrame*, const ResourceRequest&, const SubstituteData& );
80 ~WebDataSourceImpl() override; 76 ~WebDataSourceImpl() override;
81 void detachFromFrame() override; 77 void detachFromFrame() override;
82 String debugName() const override { return "WebDataSourceImpl"; } 78 String debugName() const override { return "WebDataSourceImpl"; }
83 79
84 // Mutable because the const getters will magically sync these to the 80 // Mutable because the const getters will magically sync these to the
85 // latest version from WebKit. 81 // latest version from WebKit.
86 mutable WrappedResourceRequest m_originalRequestWrapper; 82 mutable WrappedResourceRequest m_originalRequestWrapper;
87 mutable WrappedResourceRequest m_requestWrapper; 83 mutable WrappedResourceRequest m_requestWrapper;
88 mutable WrappedResourceResponse m_responseWrapper; 84 mutable WrappedResourceResponse m_responseWrapper;
89 85
90 OwnPtr<ExtraData> m_extraData; 86 OwnPtr<ExtraData> m_extraData;
91 OwnPtrWillBeMember<WebPluginLoadObserver> m_pluginLoadObserver;
92 }; 87 };
93 88
94 } // namespace blink 89 } // namespace blink
95 90
96 #endif // WebDataSourceImpl_h 91 #endif // WebDataSourceImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebDataSourceImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698