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

Side by Side Diff: Source/bindings/v8/V8Initializer.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/ScriptController.cpp ('k') | Source/bindings/v8/V8LazyEventListener.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 #include "bindings/v8/DOMWrapperWorld.h" 34 #include "bindings/v8/DOMWrapperWorld.h"
35 #include "bindings/v8/ScriptCallStackFactory.h" 35 #include "bindings/v8/ScriptCallStackFactory.h"
36 #include "bindings/v8/ScriptController.h" 36 #include "bindings/v8/ScriptController.h"
37 #include "bindings/v8/ScriptProfiler.h" 37 #include "bindings/v8/ScriptProfiler.h"
38 #include "bindings/v8/V8Binding.h" 38 #include "bindings/v8/V8Binding.h"
39 #include "bindings/v8/V8ErrorHandler.h" 39 #include "bindings/v8/V8ErrorHandler.h"
40 #include "bindings/v8/V8GCController.h" 40 #include "bindings/v8/V8GCController.h"
41 #include "bindings/v8/V8PerContextData.h" 41 #include "bindings/v8/V8PerContextData.h"
42 #include "core/dom/Document.h" 42 #include "core/dom/Document.h"
43 #include "core/dom/ExceptionCode.h" 43 #include "core/dom/ExceptionCode.h"
44 #include "core/inspector/ScriptCallStack.h"
45 #include "core/frame/ConsoleTypes.h" 44 #include "core/frame/ConsoleTypes.h"
46 #include "core/frame/ContentSecurityPolicy.h"
47 #include "core/frame/DOMWindow.h" 45 #include "core/frame/DOMWindow.h"
48 #include "core/frame/LocalFrame.h" 46 #include "core/frame/LocalFrame.h"
47 #include "core/frame/csp/ContentSecurityPolicy.h"
48 #include "core/inspector/ScriptCallStack.h"
49 #include "public/platform/Platform.h" 49 #include "public/platform/Platform.h"
50 #include "wtf/RefPtr.h" 50 #include "wtf/RefPtr.h"
51 #include "wtf/text/WTFString.h" 51 #include "wtf/text/WTFString.h"
52 #include <v8-debug.h> 52 #include <v8-debug.h>
53 53
54 namespace WebCore { 54 namespace WebCore {
55 55
56 static LocalFrame* findFrame(v8::Local<v8::Object> host, v8::Local<v8::Value> da ta, v8::Isolate* isolate) 56 static LocalFrame* findFrame(v8::Local<v8::Object> host, v8::Local<v8::Value> da ta, v8::Isolate* isolate)
57 { 57 {
58 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data); 58 const WrapperTypeInfo* type = WrapperTypeInfo::unwrap(data);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 v8::V8::AddMessageListener(messageHandlerInWorker); 222 v8::V8::AddMessageListener(messageHandlerInWorker);
223 v8::V8::SetFatalErrorHandler(reportFatalErrorInWorker); 223 v8::V8::SetFatalErrorHandler(reportFatalErrorInWorker);
224 224
225 v8::ResourceConstraints resourceConstraints; 225 v8::ResourceConstraints resourceConstraints;
226 uint32_t here; 226 uint32_t here;
227 resourceConstraints.set_stack_limit(&here - kWorkerMaxStackSize / sizeof(uin t32_t*)); 227 resourceConstraints.set_stack_limit(&here - kWorkerMaxStackSize / sizeof(uin t32_t*));
228 v8::SetResourceConstraints(isolate, &resourceConstraints); 228 v8::SetResourceConstraints(isolate, &resourceConstraints);
229 } 229 }
230 230
231 } // namespace WebCore 231 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptController.cpp ('k') | Source/bindings/v8/V8LazyEventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698