| 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 WebFrame; | 40 class WebFrame; |
| 41 class WebPermissionCallbacks; | 41 class WebPermissionCallbacks; |
| 42 class WebString; | 42 class WebString; |
| 43 class WebWorkerPermissionClientProxy; | 43 class WebWorkerPermissionClientProxy; |
| 44 | 44 |
| 45 class WorkerPermissionClient FINAL : public NoBaseWillBeGarbageCollectedFinalize
d<WorkerPermissionClient>, public WillBeHeapSupplement<WorkerClients> { | 45 class WorkerPermissionClient final : public NoBaseWillBeGarbageCollectedFinalize
d<WorkerPermissionClient>, public WillBeHeapSupplement<WorkerClients> { |
| 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerPermissionClient); | 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerPermissionClient); |
| 47 public: | 47 public: |
| 48 static PassOwnPtrWillBeRawPtr<WorkerPermissionClient> create(PassOwnPtr<WebW
orkerPermissionClientProxy>); | 48 static PassOwnPtrWillBeRawPtr<WorkerPermissionClient> create(PassOwnPtr<WebW
orkerPermissionClientProxy>); |
| 49 virtual ~WorkerPermissionClient(); | 49 virtual ~WorkerPermissionClient(); |
| 50 | 50 |
| 51 bool requestFileSystemAccessSync(); | 51 bool requestFileSystemAccessSync(); |
| 52 bool allowIndexedDB(const WebString& name); | 52 bool allowIndexedDB(const WebString& name); |
| 53 | 53 |
| 54 static const char* supplementName(); | 54 static const char* supplementName(); |
| 55 static WorkerPermissionClient* from(ExecutionContext&); | 55 static WorkerPermissionClient* from(ExecutionContext&); |
| 56 | 56 |
| 57 virtual void trace(Visitor* visitor) OVERRIDE { WillBeHeapSupplement<WorkerC
lients>::trace(visitor); } | 57 virtual void trace(Visitor* visitor) override { WillBeHeapSupplement<WorkerC
lients>::trace(visitor); } |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>); | 60 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>); |
| 61 | 61 |
| 62 OwnPtr<WebWorkerPermissionClientProxy> m_proxy; | 62 OwnPtr<WebWorkerPermissionClientProxy> m_proxy; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 void providePermissionClientToWorker(WorkerClients*, PassOwnPtr<WebWorkerPermiss
ionClientProxy>); | 65 void providePermissionClientToWorker(WorkerClients*, PassOwnPtr<WebWorkerPermiss
ionClientProxy>); |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| 68 | 68 |
| 69 #endif // WorkerPermissionClient_h | 69 #endif // WorkerPermissionClient_h |
| OLD | NEW |