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

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteFrameClient.h

Issue 2781723007: Plumb initiator out of Blink. (Closed)
Patch Set: Created 3 years, 8 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 // 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/loader/FrameLoaderTypes.h" 10 #include "core/loader/FrameLoaderTypes.h"
11 #include "public/platform/WebFocusType.h" 11 #include "public/platform/WebFocusType.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class Document;
15 class IntRect; 16 class IntRect;
16 class LocalFrame; 17 class LocalFrame;
17 class MessageEvent; 18 class MessageEvent;
18 class ResourceRequest; 19 class ResourceRequest;
19 class SecurityOrigin; 20 class SecurityOrigin;
20 21
21 class RemoteFrameClient : public FrameClient { 22 class RemoteFrameClient : public FrameClient {
22 public: 23 public:
23 ~RemoteFrameClient() override {} 24 ~RemoteFrameClient() override {}
24 25
25 virtual void navigate(const ResourceRequest&, 26 virtual void navigate(Document* originDocument,
27 const ResourceRequest&,
26 bool shouldReplaceCurrentEntry) = 0; 28 bool shouldReplaceCurrentEntry) = 0;
27 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; 29 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0;
28 virtual unsigned backForwardLength() = 0; 30 virtual unsigned backForwardLength() = 0;
29 31
30 // Forwards a postMessage for a remote frame. 32 // Forwards a postMessage for a remote frame.
31 virtual void forwardPostMessage(MessageEvent*, 33 virtual void forwardPostMessage(MessageEvent*,
32 PassRefPtr<SecurityOrigin> target, 34 PassRefPtr<SecurityOrigin> target,
33 LocalFrame* sourceFrame) const = 0; 35 LocalFrame* sourceFrame) const = 0;
34 36
35 virtual void frameRectsChanged(const IntRect& frameRect) = 0; 37 virtual void frameRectsChanged(const IntRect& frameRect) = 0;
36 38
37 virtual void updateRemoteViewportIntersection( 39 virtual void updateRemoteViewportIntersection(
38 const IntRect& viewportIntersection) = 0; 40 const IntRect& viewportIntersection) = 0;
39 41
40 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0; 42 virtual void advanceFocus(WebFocusType, LocalFrame* source) = 0;
41 43
42 virtual void visibilityChanged(bool visible) = 0; 44 virtual void visibilityChanged(bool visible) = 0;
43 }; 45 };
44 46
45 } // namespace blink 47 } // namespace blink
46 48
47 #endif // RemoteFrameClient_h 49 #endif // RemoteFrameClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RemoteFrame.cpp ('k') | third_party/WebKit/Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698