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

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

Issue 5612002: Blacklist bad GPU drivers: currenly we disable all gpu related features if th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/shared_memory.h" 13 #include "base/shared_memory.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "base/timer.h" 15 #include "base/timer.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "chrome/common/child_thread.h" 17 #include "chrome/common/child_thread.h"
18 #include "chrome/common/css_colors.h" 18 #include "chrome/common/css_colors.h"
19 #include "chrome/common/gpu_feature_flags.h"
brettw 2010/12/03 00:11:38 Can the class be forward declared instead of intro
Zhenyao Mo 2010/12/03 18:29:57 Done.
19 #include "chrome/common/gpu_info.h" 20 #include "chrome/common/gpu_info.h"
20 #include "chrome/renderer/visitedlink_slave.h" 21 #include "chrome/renderer/visitedlink_slave.h"
21 #include "gfx/native_widget_types.h" 22 #include "gfx/native_widget_types.h"
22 #include "ipc/ipc_channel_proxy.h" 23 #include "ipc/ipc_channel_proxy.h"
23 #include "ipc/ipc_platform_file.h" 24 #include "ipc/ipc_platform_file.h"
24 25
25 class AppCacheDispatcher; 26 class AppCacheDispatcher;
26 class CookieMessageFilter; 27 class CookieMessageFilter;
27 class DBMessageFilter; 28 class DBMessageFilter;
28 class DevToolsAgentFilter; 29 class DevToolsAgentFilter;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 void OnPurgePluginListCache(bool reload_pages); 305 void OnPurgePluginListCache(bool reload_pages);
305 306
306 void OnInitSpellChecker(IPC::PlatformFileForTransit bdict_file, 307 void OnInitSpellChecker(IPC::PlatformFileForTransit bdict_file,
307 const std::vector<std::string>& custom_words, 308 const std::vector<std::string>& custom_words,
308 const std::string& language, 309 const std::string& language,
309 bool auto_spell_correct); 310 bool auto_spell_correct);
310 void OnSpellCheckWordAdded(const std::string& word); 311 void OnSpellCheckWordAdded(const std::string& word);
311 void OnSpellCheckEnableAutoSpellCorrect(bool enable); 312 void OnSpellCheckEnableAutoSpellCorrect(bool enable);
312 313
313 void OnGpuChannelEstablished(const IPC::ChannelHandle& channel_handle, 314 void OnGpuChannelEstablished(const IPC::ChannelHandle& channel_handle,
314 const GPUInfo& gpu_info); 315 const GPUInfo& gpu_info,
316 const GpuFeatureFlags& gpu_feature_flags);
315 317
316 void OnSetPhishingModel(IPC::PlatformFileForTransit model_file); 318 void OnSetPhishingModel(IPC::PlatformFileForTransit model_file);
317 319
318 void OnGetAccessibilityTree(); 320 void OnGetAccessibilityTree();
319 321
320 void OnSetSpeechInputEnabled(bool enabled); 322 void OnSetSpeechInputEnabled(bool enabled);
321 323
322 // Gather usage statistics from the in-memory cache and inform our host. 324 // Gather usage statistics from the in-memory cache and inform our host.
323 // These functions should be call periodically so that the host can make 325 // These functions should be call periodically so that the host can make
324 // decisions about how to allocation resources using current information. 326 // decisions about how to allocation resources using current information.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 410
409 // Map of registered v8 extensions. The key is the extension name. The value 411 // Map of registered v8 extensions. The key is the extension name. The value
410 // is true if the extension should be restricted to extension-related 412 // is true if the extension should be restricted to extension-related
411 // contexts. 413 // contexts.
412 std::map<std::string, bool> v8_extensions_; 414 std::map<std::string, bool> v8_extensions_;
413 415
414 DISALLOW_COPY_AND_ASSIGN(RenderThread); 416 DISALLOW_COPY_AND_ASSIGN(RenderThread);
415 }; 417 };
416 418
417 #endif // CHROME_RENDERER_RENDER_THREAD_H_ 419 #endif // CHROME_RENDERER_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698