| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RemoteFrameClient_h | 5 #ifndef RemoteFrameClient_h |
| 6 #define RemoteFrameClient_h | 6 #define RemoteFrameClient_h |
| 7 | 7 |
| 8 #include "core/frame/FrameClient.h" | 8 #include "core/frame/FrameClient.h" |
| 9 #include "core/frame/FrameTypes.h" | 9 #include "core/frame/FrameTypes.h" |
| 10 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 10 #include "core/loader/FrameLoaderTypes.h" | 11 #include "core/loader/FrameLoaderTypes.h" |
| 11 #include "public/platform/WebFocusType.h" | 12 #include "public/platform/WebFocusType.h" |
| 13 #include "wtf/Vector.h" |
| 14 #include "wtf/text/WTFString.h" |
| 12 | 15 |
| 13 namespace blink { | 16 namespace blink { |
| 14 | 17 |
| 15 class Event; | 18 class Event; |
| 16 class IntRect; | 19 class IntRect; |
| 20 class KURL; |
| 17 class ResourceRequest; | 21 class ResourceRequest; |
| 18 | 22 |
| 19 class RemoteFrameClient : public FrameClient { | 23 class RemoteFrameClient : public FrameClient { |
| 20 public: | 24 public: |
| 21 ~RemoteFrameClient() override { } | 25 ~RemoteFrameClient() override { } |
| 22 | 26 |
| 23 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry
) = 0; | 27 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry
) = 0; |
| 24 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; | 28 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; |
| 25 virtual unsigned backForwardLength() = 0; | 29 virtual unsigned backForwardLength() = 0; |
| 26 | 30 |
| 27 // Forwards a postMessage for a remote frame. | 31 // Forwards a postMessage for a remote frame. |
| 28 virtual void forwardPostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> ta
rget, LocalFrame* sourceFrame) const = 0; | 32 virtual void forwardPostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> ta
rget, LocalFrame* sourceFrame) const = 0; |
| 29 | 33 |
| 30 // FIXME: Remove this method once we have input routing in the browser | 34 // FIXME: Remove this method once we have input routing in the browser |
| 31 // process. See http://crbug.com/339659. | 35 // process. See http://crbug.com/339659. |
| 32 virtual void forwardInputEvent(Event*) = 0; | 36 virtual void forwardInputEvent(Event*) = 0; |
| 33 | 37 |
| 34 virtual void frameRectsChanged(const IntRect& frameRect) = 0; | 38 virtual void frameRectsChanged(const IntRect& frameRect) = 0; |
| 35 | 39 |
| 36 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0; | 40 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0; |
| 37 | 41 |
| 38 virtual void visibilityChanged(bool visible) = 0; | 42 virtual void visibilityChanged(bool visible) = 0; |
| 43 |
| 44 virtual void forwardContentSecurityPolicyViolation(const String& directiveTe
xt, const String& effectiveDirective, const String& consoleMessage, const KURL&
blockedURL, const Vector<String>& reportEndpoints, const String& header, Content
SecurityPolicy::ViolationType, bool followedRedirect, int contextLine) = 0; |
| 39 }; | 45 }; |
| 40 | 46 |
| 41 } // namespace blink | 47 } // namespace blink |
| 42 | 48 |
| 43 #endif // RemoteFrameClient_h | 49 #endif // RemoteFrameClient_h |
| OLD | NEW |