Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.h |
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.h b/third_party/WebKit/Source/web/WebLocalFrameImpl.h |
| index a57a15a315a8cac17f25fae0101c0bcc828b72de..fcb4c2c5e1aeb002b14b71a536a7bf2bb38f9aec 100644 |
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.h |
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.h |
| @@ -32,6 +32,7 @@ |
| #define WebLocalFrameImpl_h |
| #include "core/editing/VisiblePosition.h" |
| +#include "core/frame/ContentSettingsClient.h" |
| #include "core/frame/LocalFrame.h" |
| #include "platform/geometry/FloatRect.h" |
| #include "platform/heap/SelfKeepAlive.h" |
| @@ -91,7 +92,6 @@ class WEB_EXPORT WebLocalFrameImpl final |
| WebString assignedName() const override; |
| void setName(const WebString&) override; |
| WebVector<WebIconURL> iconURLs(int iconTypesMask) const override; |
| - void setContentSettingsClient(WebContentSettingsClient*) override; |
| void setSharedWorkerRepositoryClient( |
| WebSharedWorkerRepositoryClient*) override; |
| WebSize getScrollOffset() const override; |
| @@ -182,6 +182,7 @@ class WEB_EXPORT WebLocalFrameImpl final |
| bool isSpellCheckingEnabled() const override; |
| void replaceMisspelledRange(const WebString&) override; |
| void removeSpellingMarkers() override; |
| + void setContentSettingsClient(WebContentSettingsClient*) override; |
| bool hasSelection() const override; |
| WebRange selectionRange() const override; |
| WebString selectionAsText() const override; |
| @@ -389,9 +390,10 @@ class WEB_EXPORT WebLocalFrameImpl final |
| WebFrameClient* client() const { return m_client; } |
| void setClient(WebFrameClient* client) { m_client = client; } |
| - WebContentSettingsClient* contentSettingsClient() { |
| + ContentSettingsClient& contentSettingsClient() { |
| return m_contentSettingsClient; |
| } |
| + |
| SharedWorkerRepositoryClientImpl* sharedWorkerRepositoryClient() const { |
| return m_sharedWorkerRepositoryClient.get(); |
| } |
| @@ -471,7 +473,7 @@ class WEB_EXPORT WebLocalFrameImpl final |
| WebFrameClient* m_client; |
| WebAutofillClient* m_autofillClient; |
| - WebContentSettingsClient* m_contentSettingsClient; |
| + ContentSettingsClient m_contentSettingsClient; |
|
haraken
2017/04/04 11:25:32
I'm wondering if WebLocalFrameImpl is a right obje
kinuko
2017/04/04 14:50:57
Yep- I don't think this would be the best place ei
haraken
2017/04/05 02:31:07
Yeah, I want to think about cleaning up these thin
|
| std::unique_ptr<SharedWorkerRepositoryClientImpl> |
| m_sharedWorkerRepositoryClient; |