OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 24 matching lines...) Expand all Loading... |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class ExecutionContext; | 39 class ExecutionContext; |
40 class WebString; | 40 class WebString; |
41 class WebWorkerContentSettingsClientProxy; | 41 class WebWorkerContentSettingsClientProxy; |
42 | 42 |
43 class WorkerContentSettingsClient final : public NoBaseWillBeGarbageCollectedFin
alized<WorkerContentSettingsClient>, public WillBeHeapSupplement<WorkerClients>
{ | 43 class WorkerContentSettingsClient final : public NoBaseWillBeGarbageCollectedFin
alized<WorkerContentSettingsClient>, public WillBeHeapSupplement<WorkerClients>
{ |
44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerContentSettingsClient); | 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerContentSettingsClient); |
45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerContentSettingsClient); | |
46 public: | 45 public: |
47 static PassOwnPtrWillBeRawPtr<WorkerContentSettingsClient> create(PassOwnPtr
<WebWorkerContentSettingsClientProxy>); | 46 static PassOwnPtrWillBeRawPtr<WorkerContentSettingsClient> create(PassOwnPtr
<WebWorkerContentSettingsClientProxy>); |
48 virtual ~WorkerContentSettingsClient(); | 47 virtual ~WorkerContentSettingsClient(); |
49 | 48 |
50 bool requestFileSystemAccessSync(); | 49 bool requestFileSystemAccessSync(); |
51 bool allowIndexedDB(const WebString& name); | 50 bool allowIndexedDB(const WebString& name); |
52 | 51 |
53 static const char* supplementName(); | 52 static const char* supplementName(); |
54 static WorkerContentSettingsClient* from(ExecutionContext&); | 53 static WorkerContentSettingsClient* from(ExecutionContext&); |
55 | 54 |
56 DEFINE_INLINE_VIRTUAL_TRACE() { WillBeHeapSupplement<WorkerClients>::trace(v
isitor); } | 55 DEFINE_INLINE_VIRTUAL_TRACE() { WillBeHeapSupplement<WorkerClients>::trace(v
isitor); } |
57 | 56 |
58 private: | 57 private: |
59 explicit WorkerContentSettingsClient(PassOwnPtr<WebWorkerContentSettingsClie
ntProxy>); | 58 explicit WorkerContentSettingsClient(PassOwnPtr<WebWorkerContentSettingsClie
ntProxy>); |
60 | 59 |
61 OwnPtr<WebWorkerContentSettingsClientProxy> m_proxy; | 60 OwnPtr<WebWorkerContentSettingsClientProxy> m_proxy; |
62 }; | 61 }; |
63 | 62 |
64 void provideContentSettingsClientToWorker(WorkerClients*, PassOwnPtr<WebWorkerCo
ntentSettingsClientProxy>); | 63 void provideContentSettingsClientToWorker(WorkerClients*, PassOwnPtr<WebWorkerCo
ntentSettingsClientProxy>); |
65 | 64 |
66 } // namespace blink | 65 } // namespace blink |
67 | 66 |
68 #endif // WorkerContentSettingsClient_h | 67 #endif // WorkerContentSettingsClient_h |
OLD | NEW |