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

Side by Side Diff: third_party/WebKit/Source/web/IndexedDBClientImpl.h

Issue 2614143002: Use a new Supplement constructor for LocalFrame's supplements (Closed)
Patch Set: Created 3 years, 11 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 35
36 class ExecutionContext; 36 class ExecutionContext;
37 37
38 // This class is used to bypass the disallowed dependency from modules/ to web/ 38 // This class is used to bypass the disallowed dependency from modules/ to web/
39 // to call allowIndexedDB() from modules/. ChromeClient is a mechanism to bypass 39 // to call allowIndexedDB() from modules/. ChromeClient is a mechanism to bypass
40 // the dependency but we cannot use ChromeClient here because 40 // the dependency but we cannot use ChromeClient here because
41 // IndexedDBClientImpl is used by worker threads but ChromeClient works only 41 // IndexedDBClientImpl is used by worker threads but ChromeClient works only
42 // for the main thread. 42 // for the main thread.
43 class IndexedDBClientImpl final : public IndexedDBClient { 43 class IndexedDBClientImpl final : public IndexedDBClient {
44 public: 44 public:
45 static IndexedDBClient* create(); 45 static IndexedDBClient* create(LocalFrame&);
46 static IndexedDBClient* create(WorkerClients&);
46 47
47 bool allowIndexedDB(ExecutionContext*, const String& name) override; 48 bool allowIndexedDB(ExecutionContext*, const String& name) override;
48 49
49 private: 50 private:
50 IndexedDBClientImpl() {} 51 explicit IndexedDBClientImpl(LocalFrame&);
52 explicit IndexedDBClientImpl(WorkerClients&);
51 }; 53 };
52 54
53 } // namespace blink 55 } // namespace blink
54 56
55 #endif // IndexedDBClientImpl_h 57 #endif // IndexedDBClientImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698