| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 // Experimental Framework ---------------------------------------------- | 676 // Experimental Framework ---------------------------------------------- |
| 676 | 677 |
| 677 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } | 678 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } |
| 678 | 679 |
| 679 // Memory ------------------------------------------------------------ | 680 // Memory ------------------------------------------------------------ |
| 680 | 681 |
| 681 // Requests purging memory. The platform may or may not purge memory, | 682 // Requests purging memory. The platform may or may not purge memory, |
| 682 // depending on memory pressure. | 683 // depending on memory pressure. |
| 683 virtual void requestPurgeMemory() {} | 684 virtual void requestPurgeMemory() {} |
| 684 | 685 |
| 686 // Feature Policy ----------------------------------------------------- |
| 687 |
| 688 virtual WebFeaturePolicy* createFeaturePolicy( |
| 689 const WebFeaturePolicy* parentPolicy, |
| 690 const WebParsedFeaturePolicyHeader& containerPolicy, |
| 691 const WebParsedFeaturePolicyHeader& policyHeader, |
| 692 const WebSecurityOrigin&) { |
| 693 return nullptr; |
| 694 } |
| 695 virtual bool isFeatureEnabledByPolicy(const WebFeaturePolicy*, |
| 696 WebFeaturePolicyFeature) { |
| 697 return true; |
| 698 } |
| 699 virtual void updateFeaturePolicyOrigin(WebFeaturePolicy* parentPolicy, |
| 700 const WebSecurityOrigin&) {} |
| 701 |
| 685 protected: | 702 protected: |
| 686 Platform(); | 703 Platform(); |
| 687 virtual ~Platform() {} | 704 virtual ~Platform() {} |
| 688 | 705 |
| 689 WebThread* m_mainThread; | 706 WebThread* m_mainThread; |
| 690 }; | 707 }; |
| 691 | 708 |
| 692 } // namespace blink | 709 } // namespace blink |
| 693 | 710 |
| 694 #endif | 711 #endif |
| OLD | NEW |