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

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

Issue 18622: POSIX: Porting renderer/render_process.cc, low hanging fruit (Closed)
Patch Set: Created 11 years, 11 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
« no previous file with comments | « chrome/renderer/render_process.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) 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 "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "base/thread.h" 12 #include "base/thread.h"
13 #include "build/build_config.h"
13 #include "chrome/common/ipc_sync_channel.h" 14 #include "chrome/common/ipc_sync_channel.h"
14 #include "chrome/common/message_router.h" 15 #include "chrome/common/message_router.h"
15 16
16 class SkBitmap; 17 class SkBitmap;
17 class Task; 18 class Task;
18 class VisitedLinkSlave; 19 class VisitedLinkSlave;
19 struct WebPreferences; 20 struct WebPreferences;
20 class RenderDnsMaster; 21 class RenderDnsMaster;
21 class NotificationService; 22 class NotificationService;
22 class UserScriptSlave; 23 class UserScriptSlave;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual void Init(); 95 virtual void Init();
95 virtual void CleanUp(); 96 virtual void CleanUp();
96 97
97 private: 98 private:
98 void OnUpdateVisitedLinks(base::SharedMemoryHandle table); 99 void OnUpdateVisitedLinks(base::SharedMemoryHandle table);
99 void OnUpdateUserScripts(base::SharedMemoryHandle table); 100 void OnUpdateUserScripts(base::SharedMemoryHandle table);
100 101
101 void OnPluginMessage(const FilePath& plugin_path, 102 void OnPluginMessage(const FilePath& plugin_path,
102 const std::vector<uint8>& data); 103 const std::vector<uint8>& data);
103 void OnSetNextPageID(int32 next_page_id); 104 void OnSetNextPageID(int32 next_page_id);
105 #if defined(OS_WIN)
106 // TODO(port): we'll need to support that at some point, but it's not clear
107 // if we'll be using the same sort of messages for setting this up
104 void OnCreateNewView(HWND parent_hwnd, 108 void OnCreateNewView(HWND parent_hwnd,
105 HANDLE modal_dialog_event, 109 HANDLE modal_dialog_event,
106 const WebPreferences& webkit_prefs, 110 const WebPreferences& webkit_prefs,
107 int32 view_id); 111 int32 view_id);
112 #endif
108 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 113 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
109 void OnSetCacheCapacities(size_t min_dead_capacity, 114 void OnSetCacheCapacities(size_t min_dead_capacity,
110 size_t max_dead_capacity, 115 size_t max_dead_capacity,
111 size_t capacity); 116 size_t capacity);
112 void OnGetCacheResourceStats(); 117 void OnGetCacheResourceStats();
113 118
114 // Gather usage statistics from the in-memory cache and inform our host. 119 // Gather usage statistics from the in-memory cache and inform our host.
115 // These functions should be call periodically so that the host can make 120 // These functions should be call periodically so that the host can make
116 // decisions about how to allocation resources using current information. 121 // decisions about how to allocation resources using current information.
117 void InformHostOfCacheStats(); 122 void InformHostOfCacheStats();
(...skipping 21 matching lines...) Expand all
139 int in_send_; 144 int in_send_;
140 145
141 DISALLOW_EVIL_CONSTRUCTORS(RenderThread); 146 DISALLOW_EVIL_CONSTRUCTORS(RenderThread);
142 }; 147 };
143 148
144 // The global RenderThread object for this process. Note that this should only 149 // The global RenderThread object for this process. Note that this should only
145 // be accessed when running on the render thread itself. 150 // be accessed when running on the render thread itself.
146 extern RenderThread* g_render_thread; 151 extern RenderThread* g_render_thread;
147 152
148 #endif // CHROME_RENDERER_RENDER_THREAD_H_ 153 #endif // CHROME_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_process.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698