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

Side by Side Diff: chrome/renderer/render_thread.cc

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome/renderer/print_web_view_helper.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #if defined(OS_WIN) 63 #if defined(OS_WIN)
64 #include <windows.h> 64 #include <windows.h>
65 #include <objbase.h> 65 #include <objbase.h>
66 #endif 66 #endif
67 67
68 using WebKit::WebCache; 68 using WebKit::WebCache;
69 using WebKit::WebCrossOriginPreflightResultCache; 69 using WebKit::WebCrossOriginPreflightResultCache;
70 using WebKit::WebFontCache; 70 using WebKit::WebFontCache;
71 using WebKit::WebString; 71 using WebKit::WebString;
72 using WebKit::WebStorageEventDispatcher; 72 using WebKit::WebStorageEventDispatcher;
73 using WebKit::WebView;
73 74
74 namespace { 75 namespace {
75 static const unsigned int kCacheStatsDelayMS = 2000 /* milliseconds */; 76 static const unsigned int kCacheStatsDelayMS = 2000 /* milliseconds */;
76 static const double kInitialIdleHandlerDelayS = 1.0 /* seconds */; 77 static const double kInitialIdleHandlerDelayS = 1.0 /* seconds */;
77 78
78 static base::LazyInstance<base::ThreadLocalPointer<RenderThread> > lazy_tls( 79 static base::LazyInstance<base::ThreadLocalPointer<RenderThread> > lazy_tls(
79 base::LINKER_INITIALIZED); 80 base::LINKER_INITIALIZED);
80 81
81 #if defined(OS_POSIX) 82 #if defined(OS_POSIX)
82 class SuicideOnChannelErrorFilter : public IPC::ChannelProxy::MessageFilter { 83 class SuicideOnChannelErrorFilter : public IPC::ChannelProxy::MessageFilter {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 210 }
210 211
211 void RenderThread::OnUpdateVisitedLinks(base::SharedMemoryHandle table) { 212 void RenderThread::OnUpdateVisitedLinks(base::SharedMemoryHandle table) {
212 DCHECK(base::SharedMemory::IsHandleValid(table)) << "Bad table handle"; 213 DCHECK(base::SharedMemory::IsHandleValid(table)) << "Bad table handle";
213 visited_link_slave_->Init(table); 214 visited_link_slave_->Init(table);
214 } 215 }
215 216
216 void RenderThread::OnAddVisitedLinks( 217 void RenderThread::OnAddVisitedLinks(
217 const VisitedLinkSlave::Fingerprints& fingerprints) { 218 const VisitedLinkSlave::Fingerprints& fingerprints) {
218 for (size_t i = 0; i < fingerprints.size(); ++i) 219 for (size_t i = 0; i < fingerprints.size(); ++i)
219 WebView::UpdateVisitedLinkState(fingerprints[i]); 220 WebView::updateVisitedLinkState(fingerprints[i]);
220 } 221 }
221 222
222 void RenderThread::OnResetVisitedLinks() { 223 void RenderThread::OnResetVisitedLinks() {
223 WebView::ResetVisitedLinkState(); 224 WebView::resetVisitedLinkState();
224 } 225 }
225 226
226 void RenderThread::OnUpdateUserScripts( 227 void RenderThread::OnUpdateUserScripts(
227 base::SharedMemoryHandle scripts) { 228 base::SharedMemoryHandle scripts) {
228 DCHECK(base::SharedMemory::IsHandleValid(scripts)) << "Bad scripts handle"; 229 DCHECK(base::SharedMemory::IsHandleValid(scripts)) << "Bad scripts handle";
229 user_script_slave_->UpdateScripts(scripts); 230 user_script_slave_->UpdateScripts(scripts);
230 } 231 }
231 232
232 void RenderThread::OnSetExtensionFunctionNames( 233 void RenderThread::OnSetExtensionFunctionNames(
233 const std::vector<std::string>& names) { 234 const std::vector<std::string>& names) {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 void RenderThread::OnPurgePluginListCache(bool reload_pages) { 562 void RenderThread::OnPurgePluginListCache(bool reload_pages) {
562 EnsureWebKitInitialized(); 563 EnsureWebKitInitialized();
563 // The call below will cause a GetPlugins call with refresh=true, but at this 564 // The call below will cause a GetPlugins call with refresh=true, but at this
564 // point we already know that the browser has refreshed its list, so disable 565 // point we already know that the browser has refreshed its list, so disable
565 // refresh temporarily to prevent each renderer process causing the list to be 566 // refresh temporarily to prevent each renderer process causing the list to be
566 // regenerated. 567 // regenerated.
567 plugin_refresh_allowed_ = false; 568 plugin_refresh_allowed_ = false;
568 WebKit::resetPluginCache(reload_pages); 569 WebKit::resetPluginCache(reload_pages);
569 plugin_refresh_allowed_ = true; 570 plugin_refresh_allowed_ = true;
570 } 571 }
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698