Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Side by Side Diff: webkit/api/src/WebKit.cpp

Issue 149086: Use upstream V8Proxy and V8Utilities (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « DEPS ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698