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 // Create a new feature policy object for a document, given its parent |
| 689 // document's policy (may be nullptr), its container policy (may be empty), |
| 690 // the header policy with which it was delivered (may be empty), and the |
| 691 // document's origin. |
| 692 virtual WebFeaturePolicy* createFeaturePolicy( |
| 693 const WebFeaturePolicy* parentPolicy, |
| 694 const WebParsedFeaturePolicyHeader& containerPolicy, |
| 695 const WebParsedFeaturePolicyHeader& policyHeader, |
| 696 const WebSecurityOrigin&) { |
| 697 return nullptr; |
| 698 } |
| 699 |
| 700 // Create a new feature policy for a document whose origin has changed, given |
| 701 // the previous policy object and the new origin. |
| 702 virtual WebFeaturePolicy* duplicateFeaturePolicyWithOrigin( |
| 703 const WebFeaturePolicy&, |
| 704 const WebSecurityOrigin&) { |
| 705 return nullptr; |
| 706 } |
| 707 |
685 protected: | 708 protected: |
686 Platform(); | 709 Platform(); |
687 virtual ~Platform() {} | 710 virtual ~Platform() {} |
688 | 711 |
689 WebThread* m_mainThread; | 712 WebThread* m_mainThread; |
690 }; | 713 }; |
691 | 714 |
692 } // namespace blink | 715 } // namespace blink |
693 | 716 |
694 #endif | 717 #endif |
OLD | NEW |