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

Unified Diff: Source/core/workers/WorkerNavigator.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/workers/WorkerMessagingProxy.cpp ('k') | Source/core/workers/WorkerNavigator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerNavigator.h
diff --git a/Source/core/workers/WorkerNavigator.h b/Source/core/workers/WorkerNavigator.h
index 79fccd13099582da93ef69a685baf53bcffdbf8d..654787baca30247825eaf3ce0191c8f5f92240e3 100644
--- a/Source/core/workers/WorkerNavigator.h
+++ b/Source/core/workers/WorkerNavigator.h
@@ -29,6 +29,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/frame/NavigatorCPU.h"
#include "core/frame/NavigatorID.h"
+#include "core/frame/NavigatorLanguage.h"
#include "core/frame/NavigatorOnLine.h"
#include "platform/Supplementable.h"
#include "platform/heap/Handle.h"
@@ -38,7 +39,8 @@
namespace blink {
-class WorkerNavigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID, public NavigatorOnLine, public WillBeHeapSupplementable<WorkerNavigator> {
+
+class WorkerNavigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID, public NavigatorOnLine, public NavigatorLanguage, public WillBeHeapSupplementable<WorkerNavigator> {
DEFINE_WRAPPERTYPEINFO();
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator);
public:
@@ -50,12 +52,20 @@ public:
virtual String userAgent() const OVERRIDE;
+ void setUserPreferredLanguagesForWorkers(const Vector<String>&);
+
+ virtual AtomicString language() OVERRIDE;
+
+ virtual Vector<String> languages() OVERRIDE;
+
void trace(Visitor*);
private:
explicit WorkerNavigator(const String&);
String m_userAgent;
+
+ Vector<String> m_userPreferredLanguages;
};
} // namespace blink
« no previous file with comments | « Source/core/workers/WorkerMessagingProxy.cpp ('k') | Source/core/workers/WorkerNavigator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698