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

Side by Side Diff: third_party/WebKit/Source/core/page/CreateWindow.h

Issue 2855263004: Throw in window.open() when an invalid URL is being passed (Closed)
Patch Set: updates 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
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 18 matching lines...) Expand all
29 29
30 #include "core/frame/LocalDOMWindow.h" 30 #include "core/frame/LocalDOMWindow.h"
31 #include "core/loader/FrameLoaderTypes.h" 31 #include "core/loader/FrameLoaderTypes.h"
32 #include "core/loader/NavigationPolicy.h" 32 #include "core/loader/NavigationPolicy.h"
33 #include "platform/wtf/text/WTFString.h" 33 #include "platform/wtf/text/WTFString.h"
34 34
35 // To avoid conflicts with the CreateWindow macro from the Windows SDK... 35 // To avoid conflicts with the CreateWindow macro from the Windows SDK...
36 #undef CreateWindow 36 #undef CreateWindow
37 37
38 namespace blink { 38 namespace blink {
39 class ExceptionState;
39 class LocalFrame; 40 class LocalFrame;
40 struct FrameLoadRequest; 41 struct FrameLoadRequest;
41 struct WindowFeatures; 42 struct WindowFeatures;
42 43
43 DOMWindow* CreateWindow(const String& url_string, 44 DOMWindow* CreateWindow(const String& url_string,
44 const AtomicString& frame_name, 45 const AtomicString& frame_name,
45 const WindowFeatures&, 46 const WindowFeatures&,
46 LocalDOMWindow& calling_window, 47 LocalDOMWindow& calling_window,
47 LocalFrame& first_frame, 48 LocalFrame& first_frame,
48 LocalFrame& opener_frame); 49 LocalFrame& opener_frame,
50 ExceptionState&);
49 51
50 void CreateWindowForRequest(const FrameLoadRequest&, 52 void CreateWindowForRequest(const FrameLoadRequest&,
51 LocalFrame& opener_frame, 53 LocalFrame& opener_frame,
52 NavigationPolicy); 54 NavigationPolicy);
53 55
54 } // namespace blink 56 } // namespace blink
55 57
56 #endif // CreateWindow_h 58 #endif // CreateWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698