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

Unified Diff: public/web/WebEmbeddedWorkerStartData.h

Issue 61763004: Add EmbeddedWorker interfaces in Blink API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updated Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebEmbeddedWorker.h ('k') | public/web/WebServiceWorkerContextClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebEmbeddedWorkerStartData.h
diff --git a/public/platform/WebPublicSuffixList.h b/public/web/WebEmbeddedWorkerStartData.h
similarity index 75%
copy from public/platform/WebPublicSuffixList.h
copy to public/web/WebEmbeddedWorkerStartData.h
index 341b60fed83c01f4ba62790197f4866bf3ad42c7..f2ca0a4e7a0a4322d1e72bd1e607e1759cda3037 100644
--- a/public/platform/WebPublicSuffixList.h
+++ b/public/web/WebEmbeddedWorkerStartData.h
@@ -28,22 +28,28 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebPublicSuffixList_h
-#define WebPublicSuffixList_h
+#ifndef WebEmbeddedWorkerStartData_h
+#define WebEmbeddedWorkerStartData_h
+#include "WebContentSecurityPolicy.h"
#include "public/platform/WebString.h"
+#include "public/platform/WebURL.h"
namespace blink {
-class WebPublicSuffixList {
-public:
- virtual size_t getPublicSuffixLength(const WebString&) = 0;
+enum WebEmbeddedWorkerStartMode {
+ WebEmbeddedWorkerStartModeDontPauseOnStart,
+ WebEmbeddedWorkerStartModePauseOnStart
+};
-protected:
- virtual ~WebPublicSuffixList() { }
+struct WebEmbeddedWorkerStartData {
+ WebURL scriptURL;
+ WebString userAgent;
+ WebString contentSecurityPolicy;
michaeln 2013/11/18 19:48:16 What kind of value goes here and where does it com
kinuko 2013/11/19 07:32:29 (As I wrote in the other review) it's for CSP, and
+ WebContentSecurityPolicyType contentSecurityPolicyType;
michaeln 2013/11/18 19:48:16 What do these values me... just curious? WebCo
+ WebEmbeddedWorkerStartMode startMode;
};
} // namespace blink
-#endif // WebPublicSuffixList_h
-
+#endif // WebEmbeddedWorkerStartData_h
« no previous file with comments | « public/web/WebEmbeddedWorker.h ('k') | public/web/WebServiceWorkerContextClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698