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

Side by Side Diff: Source/bindings/v8/V8LazyEventListener.cpp

Issue 180523003: Move ContentSecurityPolicy to core/frame/csp (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/V8Initializer.cpp ('k') | Source/bindings/v8/V8WindowShell.cpp » ('j') | 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) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 #include "bindings/v8/ScriptController.h" 37 #include "bindings/v8/ScriptController.h"
38 #include "bindings/v8/ScriptSourceCode.h" 38 #include "bindings/v8/ScriptSourceCode.h"
39 #include "bindings/v8/V8Binding.h" 39 #include "bindings/v8/V8Binding.h"
40 #include "bindings/v8/V8DOMWrapper.h" 40 #include "bindings/v8/V8DOMWrapper.h"
41 #include "bindings/v8/V8ScriptRunner.h" 41 #include "bindings/v8/V8ScriptRunner.h"
42 #include "core/dom/Document.h" 42 #include "core/dom/Document.h"
43 #include "core/dom/Node.h" 43 #include "core/dom/Node.h"
44 #include "core/html/HTMLElement.h" 44 #include "core/html/HTMLElement.h"
45 #include "core/html/HTMLFormElement.h" 45 #include "core/html/HTMLFormElement.h"
46 #include "core/inspector/InspectorInstrumentation.h" 46 #include "core/inspector/InspectorInstrumentation.h"
47 #include "core/frame/ContentSecurityPolicy.h"
48 #include "core/frame/LocalFrame.h" 47 #include "core/frame/LocalFrame.h"
48 #include "core/frame/csp/ContentSecurityPolicy.h"
49 49
50 #include "wtf/StdLibExtras.h" 50 #include "wtf/StdLibExtras.h"
51 51
52 namespace WebCore { 52 namespace WebCore {
53 53
54 V8LazyEventListener::V8LazyEventListener(const AtomicString& functionName, const AtomicString& eventParameterName, const String& code, const String sourceURL, c onst TextPosition& position, Node* node, v8::Isolate* isolate) 54 V8LazyEventListener::V8LazyEventListener(const AtomicString& functionName, const AtomicString& eventParameterName, const String& code, const String sourceURL, c onst TextPosition& position, Node* node, v8::Isolate* isolate)
55 : V8AbstractEventListener(true, DOMWrapperWorld::mainWorld(), isolate) 55 : V8AbstractEventListener(true, DOMWrapperWorld::mainWorld(), isolate)
56 , m_functionName(functionName) 56 , m_functionName(functionName)
57 , m_eventParameterName(eventParameterName) 57 , m_eventParameterName(eventParameterName)
58 , m_code(code) 58 , m_code(code)
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // // Since we only parse once, there's no need to keep data used for parsin g around anymore. 216 // // Since we only parse once, there's no need to keep data used for parsin g around anymore.
217 // m_functionName = String(); 217 // m_functionName = String();
218 // m_code = String(); 218 // m_code = String();
219 // m_eventParameterName = String(); 219 // m_eventParameterName = String();
220 // m_sourceURL = String(); 220 // m_sourceURL = String();
221 221
222 setListenerObject(wrappedFunction); 222 setListenerObject(wrappedFunction);
223 } 223 }
224 224
225 } // namespace WebCore 225 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8Initializer.cpp ('k') | Source/bindings/v8/V8WindowShell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698