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

Unified Diff: third_party/WebKit/Source/core/origin_trials/testing/WorkerGlobalScopeFrobulate.h

Issue 1828063002: Add support for origin trials in workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trial-token-in-header-blink-document
Patch Set: address comments Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/origin_trials/testing/WorkerGlobalScopeFrobulate.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/GlobalIndexedDB.h b/third_party/WebKit/Source/core/origin_trials/testing/WorkerGlobalScopeFrobulate.h
similarity index 50%
copy from third_party/WebKit/Source/modules/indexeddb/GlobalIndexedDB.h
copy to third_party/WebKit/Source/core/origin_trials/testing/WorkerGlobalScopeFrobulate.h
index de743568a820b6394c4f224d95d1e2abaae7e562..05c9b2a1656267b0c95d779e89dd35ab57d0af0a 100644
--- a/third_party/WebKit/Source/modules/indexeddb/GlobalIndexedDB.h
+++ b/third_party/WebKit/Source/core/origin_trials/testing/WorkerGlobalScopeFrobulate.h
@@ -2,24 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef GlobalIndexedDB_h
-#define GlobalIndexedDB_h
+#ifndef WorkerGlobalScopeFrobulate_h
+#define WorkerGlobalScopeFrobulate_h
#include "wtf/Allocator.h"
namespace blink {
-class IDBFactory;
-class DOMWindow;
class WorkerGlobalScope;
-class GlobalIndexedDB {
- STATIC_ONLY(GlobalIndexedDB);
+class WorkerGlobalScopeFrobulate final {
+ STATIC_ONLY(WorkerGlobalScopeFrobulate);
public:
- static IDBFactory* indexedDB(DOMWindow&);
- static IDBFactory* indexedDB(WorkerGlobalScope&);
+ static bool frobulate(WorkerGlobalScope&) { return true; }
};
} // namespace blink
-#endif // GlobalIndexedDB_h
+#endif // WorkerGlobalScopeFrobulate_h

Powered by Google App Engine
This is Rietveld 408576698