| OLD | NEW |
| 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 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 #include "public/web/WebFrame.h" | 65 #include "public/web/WebFrame.h" |
| 66 #include "public/web/WebSettings.h" | 66 #include "public/web/WebSettings.h" |
| 67 #include "public/web/WebView.h" | 67 #include "public/web/WebView.h" |
| 68 #include "public/web/WebWorkerContentSettingsClientProxy.h" | 68 #include "public/web/WebWorkerContentSettingsClientProxy.h" |
| 69 #include "public/web/modules/serviceworker/WebServiceWorkerNetworkProvider.h" | 69 #include "public/web/modules/serviceworker/WebServiceWorkerNetworkProvider.h" |
| 70 #include "web/LocalFileSystemClient.h" | 70 #include "web/LocalFileSystemClient.h" |
| 71 #include "web/WebDataSourceImpl.h" | 71 #include "web/WebDataSourceImpl.h" |
| 72 #include "web/WebLocalFrameImpl.h" | 72 #include "web/WebLocalFrameImpl.h" |
| 73 #include "web/WorkerContentSettingsClient.h" | 73 #include "web/WorkerContentSettingsClient.h" |
| 74 #include "wtf/Functional.h" | 74 #include "wtf/Functional.h" |
| 75 #include "wtf/MainThread.h" | |
| 76 | 75 |
| 77 namespace blink { | 76 namespace blink { |
| 78 | 77 |
| 79 // TODO(toyoshim): Share implementation with WebEmbeddedWorkerImpl as much as | 78 // TODO(toyoshim): Share implementation with WebEmbeddedWorkerImpl as much as |
| 80 // possible. | 79 // possible. |
| 81 | 80 |
| 82 WebSharedWorkerImpl::WebSharedWorkerImpl(WebSharedWorkerClient* client) | 81 WebSharedWorkerImpl::WebSharedWorkerImpl(WebSharedWorkerClient* client) |
| 83 : m_webView(nullptr) | 82 : m_webView(nullptr) |
| 84 , m_mainFrame(nullptr) | 83 , m_mainFrame(nullptr) |
| 85 , m_askedToTerminate(false) | 84 , m_askedToTerminate(false) |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 if (devtoolsAgent) | 389 if (devtoolsAgent) |
| 391 devtoolsAgent->dispatchOnInspectorBackend(sessionId, message); | 390 devtoolsAgent->dispatchOnInspectorBackend(sessionId, message); |
| 392 } | 391 } |
| 393 | 392 |
| 394 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 393 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 395 { | 394 { |
| 396 return new WebSharedWorkerImpl(client); | 395 return new WebSharedWorkerImpl(client); |
| 397 } | 396 } |
| 398 | 397 |
| 399 } // namespace blink | 398 } // namespace blink |
| OLD | NEW |