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

Unified Diff: Source/core/workers/WorkerLanguageTasks.h

Issue 592183002: [WIP]Implement Blink side changes for navigator.language(s) support for workers. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Dedicated worker languagechange event added. Still WIP. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/NavigatorLanguage.h ('k') | Source/core/workers/WorkerLanguageTasks.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerLanguageTasks.h
diff --git a/Source/core/workers/WorkerLanguageTasks.h b/Source/core/workers/WorkerLanguageTasks.h
new file mode 100644
index 0000000000000000000000000000000000000000..b4cff2aef27d1d336c537bdb6a84616c3b947c38
--- /dev/null
+++ b/Source/core/workers/WorkerLanguageTasks.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WorkerLanguageTasks_h
+#define WorkerLanguageTasks_h
+
+#include "core/dom/ExecutionContextTask.h"
+#include "wtf/PassOwnPtr.h"
+#include "wtf/Vector.h"
+
+namespace blink {
+
+class WorkerThreadSetUserPreferredLanguagesTask : public ExecutionContextTask {
+public:
+ static PassOwnPtr<WorkerThreadSetUserPreferredLanguagesTask> create(const Vector<String>& languages);
+
+ virtual void performTask(ExecutionContext *scriptContext);
+
+private:
+ WorkerThreadSetUserPreferredLanguagesTask(const Vector<String>& languages);
+
+ Vector<String> m_languages;
+};
+
+//----
+
+class WorkerThreadAcceptLanguagesChangedTask : public ExecutionContextTask {
+public:
+ static PassOwnPtr<WorkerThreadAcceptLanguagesChangedTask> create();
+
+ virtual void performTask(ExecutionContext *scriptContext);
+
+private:
+ WorkerThreadAcceptLanguagesChangedTask();
+};
+
+} // namespace blink
+
+#endif // WorkerLanguageTasks_h
« no previous file with comments | « Source/core/frame/NavigatorLanguage.h ('k') | Source/core/workers/WorkerLanguageTasks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698