| OLD | NEW | 
|    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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   65 }; |   65 }; | 
|   66  |   66  | 
|   67 class CORE_EXPORT ScriptController final : public GarbageCollected<ScriptControl
     ler> { |   67 class CORE_EXPORT ScriptController final : public GarbageCollected<ScriptControl
     ler> { | 
|   68     WTF_MAKE_NONCOPYABLE(ScriptController); |   68     WTF_MAKE_NONCOPYABLE(ScriptController); | 
|   69 public: |   69 public: | 
|   70     enum ExecuteScriptPolicy { |   70     enum ExecuteScriptPolicy { | 
|   71         ExecuteScriptWhenScriptsDisabled, |   71         ExecuteScriptWhenScriptsDisabled, | 
|   72         DoNotExecuteScriptWhenScriptsDisabled |   72         DoNotExecuteScriptWhenScriptsDisabled | 
|   73     }; |   73     }; | 
|   74  |   74  | 
|   75     static RawPtr<ScriptController> create(LocalFrame* frame) |   75     static ScriptController* create(LocalFrame* frame) | 
|   76     { |   76     { | 
|   77         return new ScriptController(frame); |   77         return new ScriptController(frame); | 
|   78     } |   78     } | 
|   79  |   79  | 
|   80     DECLARE_TRACE(); |   80     DECLARE_TRACE(); | 
|   81  |   81  | 
|   82     bool initializeMainWorld(); |   82     bool initializeMainWorld(); | 
|   83     WindowProxy* windowProxy(DOMWrapperWorld&); |   83     WindowProxy* windowProxy(DOMWrapperWorld&); | 
|   84     WindowProxy* existingWindowProxy(DOMWrapperWorld&); |   84     WindowProxy* existingWindowProxy(DOMWrapperWorld&); | 
|   85  |   85  | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  151     LocalFrame* frame() const { return toLocalFrame(m_windowProxyManager->frame(
     )); } |  151     LocalFrame* frame() const { return toLocalFrame(m_windowProxyManager->frame(
     )); } | 
|  152  |  152  | 
|  153     v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, Acce
     ssControlStatus, ExecuteScriptPolicy, double* compilationFinishTime = 0); |  153     v8::Local<v8::Value> evaluateScriptInMainWorld(const ScriptSourceCode&, Acce
     ssControlStatus, ExecuteScriptPolicy, double* compilationFinishTime = 0); | 
|  154  |  154  | 
|  155     Member<WindowProxyManager> m_windowProxyManager; |  155     Member<WindowProxyManager> m_windowProxyManager; | 
|  156 }; |  156 }; | 
|  157  |  157  | 
|  158 } // namespace blink |  158 } // namespace blink | 
|  159  |  159  | 
|  160 #endif // ScriptController_h |  160 #endif // ScriptController_h | 
| OLD | NEW |