| 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 28 matching lines...) Expand all Loading... |
| 39 class WorkerNavigator final : public GarbageCollectedFinalized<WorkerNavigator>,
public ScriptWrappable, public NavigatorCPU, public NavigatorID, public Navigat
orOnLine, public HeapSupplementable<WorkerNavigator> { | 39 class WorkerNavigator final : public GarbageCollectedFinalized<WorkerNavigator>,
public ScriptWrappable, public NavigatorCPU, public NavigatorID, public Navigat
orOnLine, public HeapSupplementable<WorkerNavigator> { |
| 40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
| 41 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); | 41 USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigator); |
| 42 public: | 42 public: |
| 43 static WorkerNavigator* create(const String& userAgent) | 43 static WorkerNavigator* create(const String& userAgent) |
| 44 { | 44 { |
| 45 return new WorkerNavigator(userAgent); | 45 return new WorkerNavigator(userAgent); |
| 46 } | 46 } |
| 47 virtual ~WorkerNavigator(); | 47 virtual ~WorkerNavigator(); |
| 48 | 48 |
| 49 virtual String userAgent() const override; | 49 String userAgent() const override; |
| 50 | 50 |
| 51 DECLARE_TRACE(); | 51 DECLARE_TRACE(); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 explicit WorkerNavigator(const String&); | 54 explicit WorkerNavigator(const String&); |
| 55 | 55 |
| 56 String m_userAgent; | 56 String m_userAgent; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace blink | 59 } // namespace blink |
| 60 | 60 |
| 61 #endif // WorkerNavigator_h | 61 #endif // WorkerNavigator_h |
| OLD | NEW |