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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Disable on ChromeOS and reduce size of table Created 3 years, 5 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 virtual WebMediaCapabilitiesClient* MediaCapabilitiesClient() { 694 virtual WebMediaCapabilitiesClient* MediaCapabilitiesClient() {
695 return nullptr; 695 return nullptr;
696 } 696 }
697 697
698 // Memory ------------------------------------------------------------ 698 // Memory ------------------------------------------------------------
699 699
700 // Requests purging memory. The platform may or may not purge memory, 700 // Requests purging memory. The platform may or may not purge memory,
701 // depending on memory pressure. 701 // depending on memory pressure.
702 virtual void RequestPurgeMemory() {} 702 virtual void RequestPurgeMemory() {}
703 703
704 // V8 Context Snapshot --------------------------------------------------
705
706 virtual bool IsToTakeV8Snapshot() { return false; }
haraken 2017/07/04 15:04:20 IsTakingV8ContextSnapshot ?
peria 2017/07/07 06:22:04 Done.
707
704 // Feature Policy ----------------------------------------------------- 708 // Feature Policy -----------------------------------------------------
705 709
706 // Create a new feature policy object for a document, given its parent 710 // Create a new feature policy object for a document, given its parent
707 // document's policy (may be nullptr), its container policy (may be empty), 711 // document's policy (may be nullptr), its container policy (may be empty),
708 // the header policy with which it was delivered (may be empty), and the 712 // the header policy with which it was delivered (may be empty), and the
709 // document's origin. 713 // document's origin.
710 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy( 714 virtual std::unique_ptr<WebFeaturePolicy> CreateFeaturePolicy(
711 const WebFeaturePolicy* parent_policy, 715 const WebFeaturePolicy* parent_policy,
712 const WebParsedFeaturePolicy& container_policy, 716 const WebParsedFeaturePolicy& container_policy,
713 const WebParsedFeaturePolicy& policy_header, 717 const WebParsedFeaturePolicy& policy_header,
714 const WebSecurityOrigin&); 718 const WebSecurityOrigin&);
715 719
716 // Create a new feature policy for a document whose origin has changed, given 720 // Create a new feature policy for a document whose origin has changed, given
717 // the previous policy object and the new origin. 721 // the previous policy object and the new origin.
718 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin( 722 virtual std::unique_ptr<WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin(
719 const WebFeaturePolicy&, 723 const WebFeaturePolicy&,
720 const WebSecurityOrigin&); 724 const WebSecurityOrigin&);
721 725
722 protected: 726 protected:
723 Platform(); 727 Platform();
724 virtual ~Platform() {} 728 virtual ~Platform() {}
725 729
726 WebThread* main_thread_; 730 WebThread* main_thread_;
727 }; 731 };
728 732
729 } // namespace blink 733 } // namespace blink
730 734
731 #endif 735 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698