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

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

Issue 2015003002: Disallow local/remote checks on subclasses of Frame, FrameOwner and DOMWindow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pure virtual Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 DOMWindow_h 5 #ifndef DOMWindow_h
6 #define DOMWindow_h 6 #define DOMWindow_h
7 7
8 #include "bindings/core/v8/Transferables.h" 8 #include "bindings/core/v8/Transferables.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class StyleMedia; 43 class StyleMedia;
44 44
45 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow Base64 { 45 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow Base64 {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 public: 47 public:
48 ~DOMWindow() override; 48 ~DOMWindow() override;
49 49
50 // GarbageCollectedFinalized overrides: 50 // GarbageCollectedFinalized overrides:
51 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
52 52
53 virtual bool isLocalDOMWindow() const { return false; } 53 virtual bool isLocalDOMWindow() const = 0;
54 virtual bool isRemoteDOMWindow() const { return false; } 54 virtual bool isRemoteDOMWindow() const = 0;
55 55
56 virtual Frame* frame() const = 0; 56 virtual Frame* frame() const = 0;
57 57
58 // ScriptWrappable overrides: 58 // ScriptWrappable overrides:
59 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) final; 59 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) final;
60 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn fo*, v8::Local<v8::Object> wrapper) final; 60 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn fo*, v8::Local<v8::Object> wrapper) final;
61 61
62 // EventTarget overrides: 62 // EventTarget overrides:
63 const AtomicString& interfaceName() const override; 63 const AtomicString& interfaceName() const override;
64 const DOMWindow* toDOMWindow() const override; 64 const DOMWindow* toDOMWindow() const override;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // implementation details to scripts. 227 // implementation details to scripts.
228 bool m_windowIsClosing; 228 bool m_windowIsClosing;
229 229
230 private: 230 private:
231 mutable Member<Location> m_location; 231 mutable Member<Location> m_location;
232 }; 232 };
233 233
234 } // namespace blink 234 } // namespace blink
235 235
236 #endif // DOMWindow_h 236 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698