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

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

Issue 2706923002: Rework security checks to be based on Window rather than Frame. (Closed)
Patch Set: Do not hardcode V8Window::wrapperTypeInfo Created 3 years, 7 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 | « third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class CORE_EXPORT Location final : public GarbageCollected<Location>, 51 class CORE_EXPORT Location final : public GarbageCollected<Location>,
52 public ScriptWrappable { 52 public ScriptWrappable {
53 DEFINE_WRAPPERTYPEINFO(); 53 DEFINE_WRAPPERTYPEINFO();
54 54
55 public: 55 public:
56 static Location* Create(DOMWindow* dom_window) { 56 static Location* Create(DOMWindow* dom_window) {
57 return new Location(dom_window); 57 return new Location(dom_window);
58 } 58 }
59 59
60 DOMWindow* DomWindow() const { return dom_window_.Get(); } 60 DOMWindow* DomWindow() const { return dom_window_.Get(); }
61 // TODO(dcheng): Deprecated and will be removed. Do not use in new code!
62 Frame* GetFrame() const { return dom_window_->GetFrame(); }
63 61
64 void setHref(LocalDOMWindow* current_window, 62 void setHref(LocalDOMWindow* current_window,
65 LocalDOMWindow* entered_window, 63 LocalDOMWindow* entered_window,
66 const String&, 64 const String&,
67 ExceptionState&); 65 ExceptionState&);
68 String href() const; 66 String href() const;
69 67
70 void assign(LocalDOMWindow* current_window, 68 void assign(LocalDOMWindow* current_window,
71 LocalDOMWindow* entered_window, 69 LocalDOMWindow* entered_window,
72 const String&, 70 const String&,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 SetLocationPolicy = SetLocationPolicy::kNormal); 140 SetLocationPolicy = SetLocationPolicy::kNormal);
143 141
144 const KURL& Url() const; 142 const KURL& Url() const;
145 143
146 const Member<DOMWindow> dom_window_; 144 const Member<DOMWindow> dom_window_;
147 }; 145 };
148 146
149 } // namespace blink 147 } // namespace blink
150 148
151 #endif // Location_h 149 #endif // Location_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698