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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptController.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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) 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef ScriptController_h 31 #ifndef ScriptController_h
32 #define ScriptController_h 32 #define ScriptController_h
33 33
34 #include <v8.h>
34 #include "bindings/core/v8/SharedPersistent.h" 35 #include "bindings/core/v8/SharedPersistent.h"
35 #include "bindings/core/v8/WindowProxyManager.h" 36 #include "bindings/core/v8/WindowProxyManager.h"
36 #include "core/CoreExport.h" 37 #include "core/CoreExport.h"
37 #include "core/dom/ExecutionContext.h" 38 #include "core/dom/ExecutionContext.h"
38 #include "core/frame/LocalFrame.h" 39 #include "core/frame/LocalFrame.h"
39 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
40 #include "platform/loader/fetch/AccessControlStatus.h" 41 #include "platform/loader/fetch/AccessControlStatus.h"
41 #include "platform/loader/fetch/CrossOriginAccessControl.h" 42 #include "platform/loader/fetch/CrossOriginAccessControl.h"
42 #include "wtf/HashMap.h" 43 #include "wtf/HashMap.h"
43 #include "wtf/Noncopyable.h" 44 #include "wtf/Noncopyable.h"
44 #include "wtf/Vector.h" 45 #include "wtf/Vector.h"
45 #include "wtf/text/TextPosition.h" 46 #include "wtf/text/TextPosition.h"
46 #include <v8.h>
47 47
48 namespace blink { 48 namespace blink {
49 49
50 class DOMWrapperWorld; 50 class DOMWrapperWorld;
51 class Element; 51 class Element;
52 class KURL; 52 class KURL;
53 class ScriptSourceCode; 53 class ScriptSourceCode;
54 class SecurityOrigin; 54 class SecurityOrigin;
55 class Widget; 55 class Widget;
56 56
57 typedef WTF::Vector<v8::Extension*> V8Extensions; 57 typedef WTF::Vector<v8::Extension*> V8Extensions;
58 58
59
60 class CORE_EXPORT ScriptController final 59 class CORE_EXPORT ScriptController final
61 : public GarbageCollected<ScriptController> { 60 : public GarbageCollected<ScriptController> {
62 WTF_MAKE_NONCOPYABLE(ScriptController); 61 WTF_MAKE_NONCOPYABLE(ScriptController);
63 62
64 public: 63 public:
65 enum ExecuteScriptPolicy { 64 enum ExecuteScriptPolicy {
66 ExecuteScriptWhenScriptsDisabled, 65 ExecuteScriptWhenScriptsDisabled,
67 DoNotExecuteScriptWhenScriptsDisabled 66 DoNotExecuteScriptWhenScriptsDisabled
68 }; 67 };
69 68
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, 144 v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&,
146 AccessControlStatus, 145 AccessControlStatus,
147 ExecuteScriptPolicy); 146 ExecuteScriptPolicy);
148 147
149 Member<LocalWindowProxyManager> m_windowProxyManager; 148 Member<LocalWindowProxyManager> m_windowProxyManager;
150 }; 149 };
151 150
152 } // namespace blink 151 } // namespace blink
153 152
154 #endif // ScriptController_h 153 #endif // ScriptController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698