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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 WebCore::SecurityOrigin::registerURLSchemeAsLocal(scheme); | 90 WebCore::SecurityOrigin::registerURLSchemeAsLocal(scheme); |
91 } | 91 } |
92 | 92 |
93 void registerURLSchemeAsNoAccess(const WebString& scheme) | 93 void registerURLSchemeAsNoAccess(const WebString& scheme) |
94 { | 94 { |
95 WebCore::SecurityOrigin::registerURLSchemeAsNoAccess(scheme); | 95 WebCore::SecurityOrigin::registerURLSchemeAsNoAccess(scheme); |
96 } | 96 } |
97 | 97 |
98 void registerExtension(v8::Extension* extension) | 98 void registerExtension(v8::Extension* extension) |
99 { | 99 { |
100 WebCore::V8Proxy::RegisterExtension(extension, WebString()); | 100 WebCore::V8Proxy::registerExtension(extension, WebString()); |
101 } | 101 } |
102 | 102 |
103 void registerExtension(v8::Extension* extension, | 103 void registerExtension(v8::Extension* extension, |
104 const WebString& schemeRestriction) | 104 const WebString& schemeRestriction) |
105 { | 105 { |
106 WebCore::V8Proxy::RegisterExtension(extension, schemeRestriction); | 106 WebCore::V8Proxy::registerExtension(extension, schemeRestriction); |
107 } | 107 } |
108 | 108 |
109 void enableWebWorkers() | 109 void enableWebWorkers() |
110 { | 110 { |
111 #if ENABLE(WORKERS) | 111 #if ENABLE(WORKERS) |
112 WebCore::WorkerContextExecutionProxy::setIsWebWorkersEnabled(true); | 112 WebCore::WorkerContextExecutionProxy::setIsWebWorkersEnabled(true); |
113 #endif | 113 #endif |
114 } | 114 } |
115 | 115 |
116 void enableMediaPlayer() | 116 void enableMediaPlayer() |
117 { | 117 { |
118 #if ENABLE(VIDEO) | 118 #if ENABLE(VIDEO) |
119 WebMediaPlayerClientImpl::setIsEnabled(true); | 119 WebMediaPlayerClientImpl::setIsEnabled(true); |
120 #endif | 120 #endif |
121 } | 121 } |
122 | 122 |
123 void resetPluginCache() | 123 void resetPluginCache() |
124 { | 124 { |
125 WebCore::Page::refreshPlugins(false); | 125 WebCore::Page::refreshPlugins(false); |
126 } | 126 } |
127 | 127 |
128 } // namespace WebKit | 128 } // namespace WebKit |
OLD | NEW |