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

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

Issue 2760793002: Use v8::Context::NewRemoteContext in RemoteWindowProxy. (Closed)
Patch Set: RemoteDOMWindow in DOMDataStore Created 3 years, 9 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 RemoteFrame_h 5 #ifndef RemoteFrame_h
6 #define RemoteFrame_h 6 #define RemoteFrame_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/RemoteSecurityContext.h" 9 #include "core/dom/RemoteSecurityContext.h"
10 #include "core/frame/Frame.h" 10 #include "core/frame/Frame.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 Event; 15 class Event;
16 class LocalFrame; 16 class LocalFrame;
17 class RemoteDOMWindow;
17 class RemoteFrameClient; 18 class RemoteFrameClient;
18 class RemoteFrameView; 19 class RemoteFrameView;
19 class WebLayer; 20 class WebLayer;
20 struct FrameLoadRequest; 21 struct FrameLoadRequest;
21 22
22 class CORE_EXPORT RemoteFrame final : public Frame { 23 class CORE_EXPORT RemoteFrame final : public Frame {
23 public: 24 public:
24 static RemoteFrame* create(RemoteFrameClient*, Page*, FrameOwner*); 25 static RemoteFrame* create(RemoteFrameClient*, Page*, FrameOwner*);
25 26
26 ~RemoteFrame() override; 27 ~RemoteFrame() override;
27 28
29 // Note: this functions is not virtual but intentionally shadows the
30 // corresponding method in the Frame base class to return the
31 // RemoteFrame-specific subclass.
32 RemoteDOMWindow* domWindow() const;
33
28 // Frame overrides: 34 // Frame overrides:
29 DECLARE_VIRTUAL_TRACE(); 35 DECLARE_VIRTUAL_TRACE();
30 void navigate(Document& originDocument, 36 void navigate(Document& originDocument,
31 const KURL&, 37 const KURL&,
32 bool replaceCurrentItem, 38 bool replaceCurrentItem,
33 UserGestureStatus) override; 39 UserGestureStatus) override;
34 void navigate(const FrameLoadRequest& passedRequest) override; 40 void navigate(const FrameLoadRequest& passedRequest) override;
35 void reload(FrameLoadType, ClientRedirectPolicy) override; 41 void reload(FrameLoadType, ClientRedirectPolicy) override;
36 void detach(FrameDetachType) override; 42 void detach(FrameDetachType) override;
37 RemoteSecurityContext* securityContext() const override; 43 RemoteSecurityContext* securityContext() const override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 83
78 DEFINE_TYPE_CASTS(RemoteFrame, 84 DEFINE_TYPE_CASTS(RemoteFrame,
79 Frame, 85 Frame,
80 remoteFrame, 86 remoteFrame,
81 remoteFrame->isRemoteFrame(), 87 remoteFrame->isRemoteFrame(),
82 remoteFrame.isRemoteFrame()); 88 remoteFrame.isRemoteFrame());
83 89
84 } // namespace blink 90 } // namespace blink
85 91
86 #endif // RemoteFrame_h 92 #endif // RemoteFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698