| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #ifdef WIN32 | 34 #ifdef WIN32 |
| 35 #include <windows.h> | 35 #include <windows.h> |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #include "BlameContext.h" | 38 #include "BlameContext.h" |
| 39 #include "UserMetricsAction.h" | 39 #include "UserMetricsAction.h" |
| 40 #include "WebAudioDevice.h" | 40 #include "WebAudioDevice.h" |
| 41 #include "WebCommon.h" | 41 #include "WebCommon.h" |
| 42 #include "WebData.h" | 42 #include "WebData.h" |
| 43 #include "WebDeviceLightListener.h" | 43 #include "WebDeviceLightListener.h" |
| 44 #include "WebFeaturePolicy.h" |
| 44 #include "WebGamepadListener.h" | 45 #include "WebGamepadListener.h" |
| 45 #include "WebGamepads.h" | 46 #include "WebGamepads.h" |
| 46 #include "WebGestureDevice.h" | 47 #include "WebGestureDevice.h" |
| 47 #include "WebLocalizedString.h" | 48 #include "WebLocalizedString.h" |
| 48 #include "WebPlatformEventType.h" | 49 #include "WebPlatformEventType.h" |
| 49 #include "WebSize.h" | 50 #include "WebSize.h" |
| 50 #include "WebSpeechSynthesizer.h" | 51 #include "WebSpeechSynthesizer.h" |
| 51 #include "WebStorageQuotaCallbacks.h" | 52 #include "WebStorageQuotaCallbacks.h" |
| 52 #include "WebStorageQuotaType.h" | 53 #include "WebStorageQuotaType.h" |
| 53 #include "WebString.h" | 54 #include "WebString.h" |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 virtual WebPushProvider* pushProvider() { return nullptr; } | 663 virtual WebPushProvider* pushProvider() { return nullptr; } |
| 663 | 664 |
| 664 // Background Sync API------------------------------------------------- | 665 // Background Sync API------------------------------------------------- |
| 665 | 666 |
| 666 virtual WebSyncProvider* backgroundSyncProvider() { return nullptr; } | 667 virtual WebSyncProvider* backgroundSyncProvider() { return nullptr; } |
| 667 | 668 |
| 668 // Experimental Framework ---------------------------------------------- | 669 // Experimental Framework ---------------------------------------------- |
| 669 | 670 |
| 670 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } | 671 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } |
| 671 | 672 |
| 673 // Feature Policy ----------------------------------------------------- |
| 674 |
| 675 virtual WebFeaturePolicy* createFeaturePolicy( |
| 676 const WebFeaturePolicy* parentPolicy, |
| 677 const WebParsedFeaturePolicyHeader& policyHeader, |
| 678 const WebSecurityOrigin&) { |
| 679 return nullptr; |
| 680 } |
| 681 virtual bool isFeatureEnabledByPolicy(const WebFeaturePolicy*, |
| 682 WebFeaturePolicyFeature, |
| 683 const WebSecurityOrigin&) { |
| 684 return true; |
| 685 } |
| 686 |
| 672 protected: | 687 protected: |
| 673 Platform(); | 688 Platform(); |
| 674 virtual ~Platform() {} | 689 virtual ~Platform() {} |
| 675 | 690 |
| 676 WebThread* m_mainThread; | 691 WebThread* m_mainThread; |
| 677 }; | 692 }; |
| 678 | 693 |
| 679 } // namespace blink | 694 } // namespace blink |
| 680 | 695 |
| 681 #endif | 696 #endif |
| OLD | NEW |