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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 PassOwnPtrWillBeRawPtr<WorkerPermissionClient> WorkerPermissionClient::create(Pa
ssOwnPtr<WebWorkerPermissionClientProxy> proxy) | 42 PassOwnPtrWillBeRawPtr<WorkerPermissionClient> WorkerPermissionClient::create(Pa
ssOwnPtr<WebWorkerPermissionClientProxy> proxy) |
43 { | 43 { |
44 return adoptPtrWillBeNoop(new WorkerPermissionClient(proxy)); | 44 return adoptPtrWillBeNoop(new WorkerPermissionClient(proxy)); |
45 } | 45 } |
46 | 46 |
47 WorkerPermissionClient::~WorkerPermissionClient() | 47 WorkerPermissionClient::~WorkerPermissionClient() |
48 { | 48 { |
49 } | 49 } |
50 | 50 |
51 bool WorkerPermissionClient::allowDatabase(const WebString& name, const WebStrin
g& displayName, unsigned long estimatedSize) | |
52 { | |
53 if (!m_proxy) | |
54 return true; | |
55 return m_proxy->allowDatabase(name, displayName, estimatedSize); | |
56 } | |
57 | |
58 bool WorkerPermissionClient::requestFileSystemAccessSync() | 51 bool WorkerPermissionClient::requestFileSystemAccessSync() |
59 { | 52 { |
60 if (!m_proxy) | 53 if (!m_proxy) |
61 return true; | 54 return true; |
62 return m_proxy->requestFileSystemAccessSync(); | 55 return m_proxy->requestFileSystemAccessSync(); |
63 } | 56 } |
64 | 57 |
65 bool WorkerPermissionClient::allowIndexedDB(const WebString& name) | 58 bool WorkerPermissionClient::allowIndexedDB(const WebString& name) |
66 { | 59 { |
67 if (!m_proxy) | 60 if (!m_proxy) |
(...skipping 18 matching lines...) Expand all Loading... |
86 { | 79 { |
87 } | 80 } |
88 | 81 |
89 void providePermissionClientToWorker(WorkerClients* clients, PassOwnPtr<WebWorke
rPermissionClientProxy> proxy) | 82 void providePermissionClientToWorker(WorkerClients* clients, PassOwnPtr<WebWorke
rPermissionClientProxy> proxy) |
90 { | 83 { |
91 ASSERT(clients); | 84 ASSERT(clients); |
92 WorkerPermissionClient::provideTo(*clients, WorkerPermissionClient::suppleme
ntName(), WorkerPermissionClient::create(proxy)); | 85 WorkerPermissionClient::provideTo(*clients, WorkerPermissionClient::suppleme
ntName(), WorkerPermissionClient::create(proxy)); |
93 } | 86 } |
94 | 87 |
95 } // namespace blink | 88 } // namespace blink |
OLD | NEW |