| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/renderer/render_thread.h" | 5 #include "chrome/renderer/render_thread.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "chrome/renderer/render_view.h" | 44 #include "chrome/renderer/render_view.h" |
| 45 #include "chrome/renderer/renderer_webkitclient_impl.h" | 45 #include "chrome/renderer/renderer_webkitclient_impl.h" |
| 46 #include "chrome/renderer/user_script_slave.h" | 46 #include "chrome/renderer/user_script_slave.h" |
| 47 #include "ipc/ipc_message.h" | 47 #include "ipc/ipc_message.h" |
| 48 #include "webkit/api/public/WebCache.h" | 48 #include "webkit/api/public/WebCache.h" |
| 49 #include "webkit/api/public/WebColor.h" | 49 #include "webkit/api/public/WebColor.h" |
| 50 #include "webkit/api/public/WebCrossOriginPreflightResultCache.h" | 50 #include "webkit/api/public/WebCrossOriginPreflightResultCache.h" |
| 51 #include "webkit/api/public/WebFontCache.h" | 51 #include "webkit/api/public/WebFontCache.h" |
| 52 #include "webkit/api/public/WebColor.h" | 52 #include "webkit/api/public/WebColor.h" |
| 53 #include "webkit/api/public/WebKit.h" | 53 #include "webkit/api/public/WebKit.h" |
| 54 #include "webkit/api/public/WebScriptController.h" |
| 54 #include "webkit/api/public/WebStorageEventDispatcher.h" | 55 #include "webkit/api/public/WebStorageEventDispatcher.h" |
| 55 #include "webkit/api/public/WebString.h" | 56 #include "webkit/api/public/WebString.h" |
| 56 #include "webkit/extensions/v8/benchmarking_extension.h" | 57 #include "webkit/extensions/v8/benchmarking_extension.h" |
| 57 #include "webkit/extensions/v8/gears_extension.h" | 58 #include "webkit/extensions/v8/gears_extension.h" |
| 58 #include "webkit/extensions/v8/interval_extension.h" | 59 #include "webkit/extensions/v8/interval_extension.h" |
| 59 #include "webkit/extensions/v8/playback_extension.h" | 60 #include "webkit/extensions/v8/playback_extension.h" |
| 60 #include "third_party/tcmalloc/tcmalloc/src/google/malloc_extension.h" | 61 #include "third_party/tcmalloc/tcmalloc/src/google/malloc_extension.h" |
| 61 | 62 |
| 62 #if defined(OS_WIN) | 63 #if defined(OS_WIN) |
| 63 #include <windows.h> | 64 #include <windows.h> |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 void RenderThread::OnPurgePluginListCache(bool reload_pages) { | 561 void RenderThread::OnPurgePluginListCache(bool reload_pages) { |
| 561 EnsureWebKitInitialized(); | 562 EnsureWebKitInitialized(); |
| 562 // The call below will cause a GetPlugins call with refresh=true, but at this | 563 // The call below will cause a GetPlugins call with refresh=true, but at this |
| 563 // point we already know that the browser has refreshed its list, so disable | 564 // point we already know that the browser has refreshed its list, so disable |
| 564 // refresh temporarily to prevent each renderer process causing the list to be | 565 // refresh temporarily to prevent each renderer process causing the list to be |
| 565 // regenerated. | 566 // regenerated. |
| 566 plugin_refresh_allowed_ = false; | 567 plugin_refresh_allowed_ = false; |
| 567 WebKit::resetPluginCache(reload_pages); | 568 WebKit::resetPluginCache(reload_pages); |
| 568 plugin_refresh_allowed_ = true; | 569 plugin_refresh_allowed_ = true; |
| 569 } | 570 } |
| OLD | NEW |