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/LocalDOMWindow.h

Issue 1417023006: bindings: Refactors BindingSecurity::shouldAllowAccessToXXX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 5 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 ~LocalDOMWindow() override; 78 ~LocalDOMWindow() override;
79 79
80 DECLARE_VIRTUAL_TRACE(); 80 DECLARE_VIRTUAL_TRACE();
81 81
82 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType, const DocumentInit&, bool forceXHTML = false); 82 PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType, const DocumentInit&, bool forceXHTML = false);
83 83
84 // EventTarget overrides: 84 // EventTarget overrides:
85 ExecutionContext* executionContext() const override; 85 ExecutionContext* executionContext() const override;
86 const LocalDOMWindow* toDOMWindow() const override;
86 LocalDOMWindow* toDOMWindow() override; 87 LocalDOMWindow* toDOMWindow() override;
87 88
88 // DOMWindow overrides: 89 // DOMWindow overrides:
89 bool isLocalDOMWindow() const override { return true; } 90 bool isLocalDOMWindow() const override { return true; }
90 LocalFrame* frame() const override; 91 LocalFrame* frame() const override;
91 Screen* screen() const override; 92 Screen* screen() const override;
92 History* history() const override; 93 History* history() const override;
93 BarProp* locationbar() const override; 94 BarProp* locationbar() const override;
94 BarProp* menubar() const override; 95 BarProp* menubar() const override;
95 BarProp* personalbar() const override; 96 BarProp* personalbar() const override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 bool allowPopUp(); // Call on first window, not target window. 160 bool allowPopUp(); // Call on first window, not target window.
160 static bool allowPopUp(LocalFrame& firstFrame); 161 static bool allowPopUp(LocalFrame& firstFrame);
161 162
162 Element* frameElement() const; 163 Element* frameElement() const;
163 164
164 PassRefPtrWillBeRawPtr<DOMWindow> open(const String& urlString, const Atomic String& frameName, const String& windowFeaturesString, 165 PassRefPtrWillBeRawPtr<DOMWindow> open(const String& urlString, const Atomic String& frameName, const String& windowFeaturesString,
165 LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow); 166 LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow);
166 167
167 FrameConsole* frameConsole() const; 168 FrameConsole* frameConsole() const;
168 169
169 void printErrorMessage(const String&); 170 void printErrorMessage(const String&) const;
170 171
171 void postMessageTimerFired(PostMessageTimer*); 172 void postMessageTimerFired(PostMessageTimer*);
172 void removePostMessageTimer(PostMessageTimer*); 173 void removePostMessageTimer(PostMessageTimer*);
173 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetOrigi n, PassRefPtrWillBeRawPtr<Event>, PassRefPtrWillBeRawPtr<ScriptCallStack>); 174 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetOrigi n, PassRefPtrWillBeRawPtr<Event>, PassRefPtrWillBeRawPtr<ScriptCallStack>);
174 175
175 // Events 176 // Events
176 // EventTarget API 177 // EventTarget API
177 void removeAllEventListeners() override; 178 void removeAllEventListeners() override;
178 179
179 using EventTarget::dispatchEvent; 180 using EventTarget::dispatchEvent;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 291 }
291 292
292 inline String LocalDOMWindow::defaultStatus() const 293 inline String LocalDOMWindow::defaultStatus() const
293 { 294 {
294 return m_defaultStatus; 295 return m_defaultStatus;
295 } 296 }
296 297
297 } // namespace blink 298 } // namespace blink
298 299
299 #endif // LocalDOMWindow_h 300 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698