| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 return m_userAgent; | 44 return m_userAgent; |
| 45 } | 45 } |
| 46 | 46 |
| 47 void WorkerNavigator::trace(Visitor* visitor) | 47 void WorkerNavigator::trace(Visitor* visitor) |
| 48 { | 48 { |
| 49 #if ENABLE(OILPAN) | 49 #if ENABLE(OILPAN) |
| 50 HeapSupplementable<WorkerNavigator>::trace(visitor); | 50 HeapSupplementable<WorkerNavigator>::trace(visitor); |
| 51 #endif | 51 #endif |
| 52 } | 52 } |
| 53 | 53 |
| 54 void WorkerNavigator::setUserPreferredLanguagesForWorkers(const Vector<String>&
languages) |
| 55 { |
| 56 m_userPreferredLanguages = languages; |
| 57 } |
| 58 |
| 59 AtomicString WorkerNavigator::language() |
| 60 { |
| 61 if (!m_userPreferredLanguages.isEmpty()) |
| 62 return AtomicString(m_userPreferredLanguages.at(0)); |
| 63 |
| 64 return emptyAtom; |
| 65 } |
| 66 |
| 67 Vector<String> WorkerNavigator::languages() |
| 68 { |
| 69 return m_userPreferredLanguages; |
| 70 } |
| 71 |
| 54 } // namespace blink | 72 } // namespace blink |
| OLD | NEW |