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

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

Issue 2626183003: Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: rebase 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"
(...skipping 23 matching lines...) Expand all
34 bool replaceCurrentItem, 34 bool replaceCurrentItem,
35 UserGestureStatus) override; 35 UserGestureStatus) override;
36 void navigate(const FrameLoadRequest& passedRequest) override; 36 void navigate(const FrameLoadRequest& passedRequest) override;
37 void reload(FrameLoadType, ClientRedirectPolicy) override; 37 void reload(FrameLoadType, ClientRedirectPolicy) override;
38 void detach(FrameDetachType) override; 38 void detach(FrameDetachType) override;
39 RemoteSecurityContext* securityContext() const override; 39 RemoteSecurityContext* securityContext() const override;
40 void printNavigationErrorMessage(const Frame&, const char* reason) override {} 40 void printNavigationErrorMessage(const Frame&, const char* reason) override {}
41 void printNavigationWarning(const String&) override {} 41 void printNavigationWarning(const String&) override {}
42 bool prepareForCommit() override; 42 bool prepareForCommit() override;
43 bool shouldClose() override; 43 bool shouldClose() override;
44 WindowProxyManagerBase* getWindowProxyManager() const override;
44 45
45 // FIXME: Remove this method once we have input routing in the browser 46 // FIXME: Remove this method once we have input routing in the browser
46 // process. See http://crbug.com/339659. 47 // process. See http://crbug.com/339659.
47 void forwardInputEvent(Event*); 48 void forwardInputEvent(Event*);
48 49
49 void setWebLayer(WebLayer*); 50 void setWebLayer(WebLayer*);
50 WebLayer* webLayer() const { return m_webLayer; } 51 WebLayer* webLayer() const { return m_webLayer; }
51 52
52 void advanceFocus(WebFocusType, LocalFrame* source); 53 void advanceFocus(WebFocusType, LocalFrame* source);
53 54
54 void setView(RemoteFrameView*); 55 void setView(RemoteFrameView*);
55 void createView(); 56 void createView();
56 57
57 RemoteFrameView* view() const; 58 RemoteFrameView* view() const;
58 59
59 RemoteFrameClient* client() const; 60 RemoteFrameClient* client() const;
60 61
61 private: 62 private:
62 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); 63 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*);
63 64
64 // Internal Frame helper overrides:
65 WindowProxyManagerBase* getWindowProxyManager() const override;
66
67 // Intentionally private to prevent redundant checks when the type is 65 // Intentionally private to prevent redundant checks when the type is
68 // already RemoteFrame. 66 // already RemoteFrame.
69 bool isLocalFrame() const override { return false; } 67 bool isLocalFrame() const override { return false; }
70 bool isRemoteFrame() const override { return true; } 68 bool isRemoteFrame() const override { return true; }
71 69
72 void detachChildren(); 70 void detachChildren();
73 71
74 Member<RemoteFrameView> m_view; 72 Member<RemoteFrameView> m_view;
75 Member<RemoteSecurityContext> m_securityContext; 73 Member<RemoteSecurityContext> m_securityContext;
76 Member<RemoteWindowProxyManager> m_windowProxyManager; 74 Member<RemoteWindowProxyManager> m_windowProxyManager;
77 WebLayer* m_webLayer = nullptr; 75 WebLayer* m_webLayer = nullptr;
78 }; 76 };
79 77
80 inline RemoteFrameView* RemoteFrame::view() const { 78 inline RemoteFrameView* RemoteFrame::view() const {
81 return m_view.get(); 79 return m_view.get();
82 } 80 }
83 81
84 DEFINE_TYPE_CASTS(RemoteFrame, 82 DEFINE_TYPE_CASTS(RemoteFrame,
85 Frame, 83 Frame,
86 remoteFrame, 84 remoteFrame,
87 remoteFrame->isRemoteFrame(), 85 remoteFrame->isRemoteFrame(),
88 remoteFrame.isRemoteFrame()); 86 remoteFrame.isRemoteFrame());
89 87
90 } // namespace blink 88 } // namespace blink
91 89
92 #endif // RemoteFrame_h 90 #endif // RemoteFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.h ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698