Chromium Code Reviews| Index: public/web/WebEmbeddedWorkerStartData.h |
| diff --git a/Source/web/WebScriptBindings.cpp b/public/web/WebEmbeddedWorkerStartData.h |
| similarity index 74% |
| copy from Source/web/WebScriptBindings.cpp |
| copy to public/web/WebEmbeddedWorkerStartData.h |
| index 61b8a56a4e6e7fe186663b51bfd7c4a921448aff..fd6294281031fbd8b019dc6d2d4ef7cd8f3a59a9 100644 |
| --- a/Source/web/WebScriptBindings.cpp |
| +++ b/public/web/WebEmbeddedWorkerStartData.h |
| @@ -28,24 +28,29 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#include "config.h" |
| -#include "public/web/WebScriptBindings.h" |
| +#ifndef WebEmbeddedWorkerStartData_h |
| +#define WebEmbeddedWorkerStartData_h |
| -#include "bindings/v8/V8Binding.h" |
| +#include "WebContentSecurityPolicy.h" |
| #include "public/platform/WebString.h" |
| - |
| -using namespace WebCore; |
| +#include "public/platform/WebURL.h" |
| namespace blink { |
| -v8::Local<v8::String> WebScriptBindings::toV8String(const WebString& string, v8::Isolate* isolate) |
| -{ |
| - return v8String(string, isolate); |
| -} |
| +enum WebEmbeddedWorkerStartMode { |
| + WebEmbeddedWorkerStartModeDontPauseOnStart, |
| + WebEmbeddedWorkerStartModePauseOnStart |
|
michaeln
2013/11/12 22:50:00
What is the pause mode about? Is this related to d
kinuko
2013/11/18 10:41:13
Yes, it's for debugging via Inspector. (Basically
|
| +}; |
| -WebString WebScriptBindings::toWebString(v8::Handle<v8::String> v8String) |
| -{ |
| - return v8StringToWebCoreString<String>(v8String, Externalize); |
| -} |
| +struct WebEmbeddedWorkerStartData { |
| + WebURL scriptURL; |
| + WebString scriptSource; |
|
michaeln
2013/11/12 22:50:00
I think we should remove scriptSource from this se
kinuko
2013/11/18 10:41:13
Ok... done. I was assuming we'd want to do so (alw
|
| + WebString userAgent; |
| + WebString contentSecurityPolicy; |
| + WebContentSecurityPolicyType contentSecurityPolicyType; |
| + WebEmbeddedWorkerStartMode startMode; |
| +}; |
| } // namespace blink |
| + |
| +#endif // WebEmbeddedWorkerStartData_h |