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

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

Issue 2721693002: Revert of Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: 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;
45 44
46 // FIXME: Remove this method once we have input routing in the browser 45 // FIXME: Remove this method once we have input routing in the browser
47 // process. See http://crbug.com/339659. 46 // process. See http://crbug.com/339659.
48 void forwardInputEvent(Event*); 47 void forwardInputEvent(Event*);
49 48
50 void setWebLayer(WebLayer*); 49 void setWebLayer(WebLayer*);
51 WebLayer* webLayer() const { return m_webLayer; } 50 WebLayer* webLayer() const { return m_webLayer; }
52 51
53 void advanceFocus(WebFocusType, LocalFrame* source); 52 void advanceFocus(WebFocusType, LocalFrame* source);
54 53
55 void setView(RemoteFrameView*); 54 void setView(RemoteFrameView*);
56 void createView(); 55 void createView();
57 56
58 RemoteFrameView* view() const; 57 RemoteFrameView* view() const;
59 58
60 RemoteFrameClient* client() const; 59 RemoteFrameClient* client() const;
61 60
62 private: 61 private:
63 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); 62 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*);
64 63
64 // Internal Frame helper overrides:
65 WindowProxyManagerBase* getWindowProxyManager() const override;
66
65 // Intentionally private to prevent redundant checks when the type is 67 // Intentionally private to prevent redundant checks when the type is
66 // already RemoteFrame. 68 // already RemoteFrame.
67 bool isLocalFrame() const override { return false; } 69 bool isLocalFrame() const override { return false; }
68 bool isRemoteFrame() const override { return true; } 70 bool isRemoteFrame() const override { return true; }
69 71
70 void detachChildren(); 72 void detachChildren();
71 73
72 Member<RemoteFrameView> m_view; 74 Member<RemoteFrameView> m_view;
73 Member<RemoteSecurityContext> m_securityContext; 75 Member<RemoteSecurityContext> m_securityContext;
74 Member<RemoteWindowProxyManager> m_windowProxyManager; 76 Member<RemoteWindowProxyManager> m_windowProxyManager;
75 WebLayer* m_webLayer = nullptr; 77 WebLayer* m_webLayer = nullptr;
76 }; 78 };
77 79
78 inline RemoteFrameView* RemoteFrame::view() const { 80 inline RemoteFrameView* RemoteFrame::view() const {
79 return m_view.get(); 81 return m_view.get();
80 } 82 }
81 83
82 DEFINE_TYPE_CASTS(RemoteFrame, 84 DEFINE_TYPE_CASTS(RemoteFrame,
83 Frame, 85 Frame,
84 remoteFrame, 86 remoteFrame,
85 remoteFrame->isRemoteFrame(), 87 remoteFrame->isRemoteFrame(),
86 remoteFrame.isRemoteFrame()); 88 remoteFrame.isRemoteFrame());
87 89
88 } // namespace blink 90 } // namespace blink
89 91
90 #endif // RemoteFrame_h 92 #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