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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WebKit.h" | 32 #include "WebKit.h" |
33 | 33 |
34 #include "WebString.h" | 34 #include "WebString.h" |
35 | 35 |
36 #include "AtomicString.h" | 36 #include "AtomicString.h" |
37 #include "DOMTimer.h" | 37 #include "DOMTimer.h" |
38 #include "FrameLoader.h" | 38 #include "FrameLoader.h" |
| 39 #include "Page.h" |
39 #include "V8Proxy.h" | 40 #include "V8Proxy.h" |
40 #include "WorkerContextExecutionProxy.h" | 41 #include "WorkerContextExecutionProxy.h" |
41 #include <wtf/Assertions.h> | 42 #include <wtf/Assertions.h> |
42 #include <wtf/Threading.h> | 43 #include <wtf/Threading.h> |
43 | 44 |
44 namespace WebKit { | 45 namespace WebKit { |
45 | 46 |
46 static WebKitClient* s_webKitClient = 0; | 47 static WebKitClient* s_webKitClient = 0; |
47 static bool s_layoutTestMode = false; | 48 static bool s_layoutTestMode = false; |
48 | 49 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 WebCore::V8Proxy::RegisterExtension(extension, schemeRestriction); | 105 WebCore::V8Proxy::RegisterExtension(extension, schemeRestriction); |
105 } | 106 } |
106 | 107 |
107 void enableWebWorkers() | 108 void enableWebWorkers() |
108 { | 109 { |
109 #if ENABLE(WORKERS) | 110 #if ENABLE(WORKERS) |
110 WebCore::WorkerContextExecutionProxy::setIsWebWorkersEnabled(true); | 111 WebCore::WorkerContextExecutionProxy::setIsWebWorkersEnabled(true); |
111 #endif | 112 #endif |
112 } | 113 } |
113 | 114 |
| 115 void resetPluginCache() |
| 116 { |
| 117 WebCore::Page::refreshPlugins(false); |
| 118 } |
| 119 |
114 } // namespace WebKit | 120 } // namespace WebKit |
OLD | NEW |