| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 namespace WebKit { | 41 namespace WebKit { |
| 42 | 42 |
| 43 class WebApplicationCacheHost; | 43 class WebApplicationCacheHost; |
| 44 class WebApplicationCacheHostClient; | 44 class WebApplicationCacheHostClient; |
| 45 class WebFrame; | 45 class WebFrame; |
| 46 class WebNotificationPresenter; | 46 class WebNotificationPresenter; |
| 47 class WebString; | 47 class WebString; |
| 48 class WebWorker; | 48 class WebWorker; |
| 49 class WebWorkerClient; | 49 class WebWorkerClient; |
| 50 | 50 |
| 51 // FIXME: Deprecate this. |
| 51 class WebCommonWorkerClient { | 52 class WebCommonWorkerClient { |
| 52 public: | 53 public: |
| 53 // Called on the main webkit thread before opening a web database. | 54 // Called on the main webkit thread before opening a web database. |
| 54 virtual bool allowDatabase(WebFrame*, const WebString& name, const WebString
& displayName, unsigned long estimatedSize) | 55 virtual bool allowDatabase(WebFrame*, const WebString& name, const WebString
& displayName, unsigned long estimatedSize) |
| 55 { | 56 { |
| 56 return true; | 57 return true; |
| 57 } | 58 } |
| 58 | 59 |
| 59 // Called on the main webkit thread before opening a file system. | 60 // Called on the main webkit thread before opening a file system. |
| 60 virtual bool allowFileSystem() | 61 virtual bool allowFileSystem() |
| 61 { | 62 { |
| 62 return true; | 63 return true; |
| 63 } | 64 } |
| 64 | 65 |
| 65 // Called on the main webkit thread before opening an indexed database. | 66 // Called on the main webkit thread before opening an indexed database. |
| 66 virtual bool allowIndexedDB(const WebString& name) | 67 virtual bool allowIndexedDB(const WebString& name) |
| 67 { | 68 { |
| 68 return true; | 69 return true; |
| 69 } | 70 } |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 } // namespace WebKit | 73 } // namespace WebKit |
| 73 | 74 |
| 74 #endif | 75 #endif |
| OLD | NEW |