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

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

Issue 88020: Allow Flash (and other plugins) to be installed without restarting the browse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/common/render_messages_internal.h ('k') | chrome/renderer/render_thread.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 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_RENDERER_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_RENDER_THREAD_H_
6 #define CHROME_RENDERER_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_RENDER_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter); 84 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter);
85 85
86 VisitedLinkSlave* visited_link_slave() const { 86 VisitedLinkSlave* visited_link_slave() const {
87 return visited_link_slave_.get(); 87 return visited_link_slave_.get();
88 } 88 }
89 89
90 UserScriptSlave* user_script_slave() const { 90 UserScriptSlave* user_script_slave() const {
91 return user_script_slave_.get(); 91 return user_script_slave_.get();
92 } 92 }
93 93
94 bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; }
95
94 // Do DNS prefetch resolution of a hostname. 96 // Do DNS prefetch resolution of a hostname.
95 void Resolve(const char* name, size_t length); 97 void Resolve(const char* name, size_t length);
96 98
97 // Send all the Histogram data to browser. 99 // Send all the Histogram data to browser.
98 void SendHistograms(); 100 void SendHistograms();
99 101
100 // Invokes InformHostOfCacheStats after a short delay. Used to move this 102 // Invokes InformHostOfCacheStats after a short delay. Used to move this
101 // bookkeeping operation off the critical latency path. 103 // bookkeeping operation off the critical latency path.
102 void InformHostOfCacheStatsLater(); 104 void InformHostOfCacheStatsLater();
103 105
(...skipping 18 matching lines...) Expand all
122 size_t capacity); 124 size_t capacity);
123 void OnGetCacheResourceStats(); 125 void OnGetCacheResourceStats();
124 126
125 // Send all histograms to browser. 127 // Send all histograms to browser.
126 void OnGetRendererHistograms(); 128 void OnGetRendererHistograms();
127 129
128 void OnExtensionHandleConnect(int channel_id); 130 void OnExtensionHandleConnect(int channel_id);
129 void OnExtensionHandleMessage(const std::string& message, int channel_id); 131 void OnExtensionHandleMessage(const std::string& message, int channel_id);
130 void OnExtensionHandleEvent(const std::string event_name, 132 void OnExtensionHandleEvent(const std::string event_name,
131 const std::string event_data); 133 const std::string event_data);
134 void OnPurgePluginListCache();
132 135
133 // Gather usage statistics from the in-memory cache and inform our host. 136 // Gather usage statistics from the in-memory cache and inform our host.
134 // These functions should be call periodically so that the host can make 137 // These functions should be call periodically so that the host can make
135 // decisions about how to allocation resources using current information. 138 // decisions about how to allocation resources using current information.
136 void InformHostOfCacheStats(); 139 void InformHostOfCacheStats();
137 140
138 // We initialize WebKit as late as possible. 141 // We initialize WebKit as late as possible.
139 void EnsureWebKitInitialized(); 142 void EnsureWebKitInitialized();
140 143
141 // These objects live solely on the render thread. 144 // These objects live solely on the render thread.
142 scoped_ptr<VisitedLinkSlave> visited_link_slave_; 145 scoped_ptr<VisitedLinkSlave> visited_link_slave_;
143 146
144 scoped_ptr<UserScriptSlave> user_script_slave_; 147 scoped_ptr<UserScriptSlave> user_script_slave_;
145 148
146 scoped_ptr<RenderDnsMaster> dns_master_; 149 scoped_ptr<RenderDnsMaster> dns_master_;
147 150
148 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; 151 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_;
149 152
150 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > cache_stats_factory_; 153 scoped_ptr<ScopedRunnableMethodFactory<RenderThread> > cache_stats_factory_;
151 154
152 scoped_ptr<NotificationService> notification_service_; 155 scoped_ptr<NotificationService> notification_service_;
153 156
154 scoped_ptr<RendererWebKitClientImpl> webkit_client_; 157 scoped_ptr<RendererWebKitClientImpl> webkit_client_;
155 158
156 scoped_ptr<AppCacheDispatcher> app_cache_dispatcher_; 159 scoped_ptr<AppCacheDispatcher> app_cache_dispatcher_;
157 160
158 scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_; 161 scoped_refptr<DevToolsAgentFilter> devtools_agent_filter_;
159 162
163 // If true, then a GetPlugins call is allowed to rescan the disk.
164 bool plugin_refresh_allowed_;
165
160 DISALLOW_COPY_AND_ASSIGN(RenderThread); 166 DISALLOW_COPY_AND_ASSIGN(RenderThread);
161 }; 167 };
162 168
163 #endif // CHROME_RENDERER_RENDER_THREAD_H_ 169 #endif // CHROME_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698