Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1010)

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2651883008: Make content::FeaturePolicy implement WebFeaturePolicy, and use it in blink code (Closed)
Patch Set: Cleanup Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 virtual WebPushProvider* pushProvider() { return nullptr; } 662 virtual WebPushProvider* pushProvider() { return nullptr; }
662 663
663 // Background Sync API------------------------------------------------- 664 // Background Sync API-------------------------------------------------
664 665
665 virtual WebSyncProvider* backgroundSyncProvider() { return nullptr; } 666 virtual WebSyncProvider* backgroundSyncProvider() { return nullptr; }
666 667
667 // Experimental Framework ---------------------------------------------- 668 // Experimental Framework ----------------------------------------------
668 669
669 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; } 670 virtual WebTrialTokenValidator* trialTokenValidator() { return nullptr; }
670 671
672 // Feature Policy -----------------------------------------------------
673
674 virtual WebFeaturePolicy* createFeaturePolicy(
675 const WebFeaturePolicy* parentPolicy,
676 const WebParsedFeaturePolicyHeader& policyHeader,
677 const WebSecurityOrigin&) {
678 return nullptr;
679 }
680 virtual bool isFeatureEnabledByPolicy(const WebFeaturePolicy*,
681 WebFeaturePolicyFeature) {
682 return true;
683 }
684 virtual void updateFeaturePolicyOrigin(WebFeaturePolicy* parentPolicy,
685 const WebSecurityOrigin&) {}
686
671 protected: 687 protected:
672 Platform(); 688 Platform();
673 virtual ~Platform() {} 689 virtual ~Platform() {}
674 690
675 WebThread* m_mainThread; 691 WebThread* m_mainThread;
676 }; 692 };
677 693
678 } // namespace blink 694 } // namespace blink
679 695
680 #endif 696 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698