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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Registers a URL scheme to be treated as a local scheme (i.e., with the | 62 // Registers a URL scheme to be treated as a local scheme (i.e., with the |
63 // same security rules as those applied to "file" URLs). This means that | 63 // same security rules as those applied to "file" URLs). This means that |
64 // normal pages cannot link to or access URLs of this scheme. | 64 // normal pages cannot link to or access URLs of this scheme. |
65 WEBKIT_API void registerURLSchemeAsLocal(const WebString&); | 65 WEBKIT_API void registerURLSchemeAsLocal(const WebString&); |
66 | 66 |
67 // Registers a URL scheme to be treated as a noAccess scheme. This means | 67 // Registers a URL scheme to be treated as a noAccess scheme. This means |
68 // that pages loaded with this URL scheme cannot access pages loaded with | 68 // that pages loaded with this URL scheme cannot access pages loaded with |
69 // any other URL scheme. | 69 // any other URL scheme. |
70 WEBKIT_API void registerURLSchemeAsNoAccess(const WebString&); | 70 WEBKIT_API void registerURLSchemeAsNoAccess(const WebString&); |
71 | 71 |
72 // Registers a v8 extension to be available on webpages with a particular | 72 // Registers a v8 extension to be available on webpages. The three forms |
73 // scheme. If the scheme argument is empty, the extension is available on | 73 // offer various restrictions on what types of contexts the extension is |
74 // all pages. Will only affect v8 contexts initialized after this call. | 74 // loaded into. If a scheme is provided, only pages whose URL has the given |
75 // Takes ownership of the v8::Extension object passed. | 75 // scheme will match. If extensionGroup is provided, the extension will only |
| 76 // be loaded into scripts run via WebFrame::ExecuteInNewWorld with the |
| 77 // matching group. |
| 78 // Will only affect v8 contexts initialized after this call. Takes ownership |
| 79 // of the v8::Extension object passed. |
76 WEBKIT_API void registerExtension(v8::Extension*); | 80 WEBKIT_API void registerExtension(v8::Extension*); |
77 WEBKIT_API void registerExtension(v8::Extension*, | 81 WEBKIT_API void registerExtension(v8::Extension*, |
78 const WebString& schemeRestriction); | 82 const WebString& schemeRestriction); |
| 83 WEBKIT_API void registerExtension(v8::Extension*, int extensionGroup); |
79 | 84 |
80 // Process any pending JavaScript console messages. | 85 // Process any pending JavaScript console messages. |
81 WEBKIT_API void flushConsoleMessages(); | 86 WEBKIT_API void flushConsoleMessages(); |
82 | 87 |
83 // Enables HTML5 media support. | 88 // Enables HTML5 media support. |
84 WEBKIT_API void enableMediaPlayer(); | 89 WEBKIT_API void enableMediaPlayer(); |
85 | 90 |
86 // Purge the plugin list cache. | 91 // Purge the plugin list cache. |
87 WEBKIT_API void resetPluginCache(); | 92 WEBKIT_API void resetPluginCache(); |
88 | 93 |
89 // Enables HTML5 database support. | 94 // Enables HTML5 database support. |
90 WEBKIT_API void enableDatabases(); | 95 WEBKIT_API void enableDatabases(); |
91 WEBKIT_API bool databasesEnabled(); | 96 WEBKIT_API bool databasesEnabled(); |
92 | 97 |
93 } // namespace WebKit | 98 } // namespace WebKit |
94 | 99 |
95 #endif | 100 #endif |
OLD | NEW |