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

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

Issue 20276: Reverting 9594. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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/render_process.h ('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 <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h"
10 #include "base/gfx/native_widget_types.h" 11 #include "base/gfx/native_widget_types.h"
12 #include "base/ref_counted.h"
11 #include "base/shared_memory.h" 13 #include "base/shared_memory.h"
12 #include "base/task.h" 14 #include "base/task.h"
13 #include "base/thread.h" 15 #include "base/thread.h"
14 #include "build/build_config.h" 16 #include "build/build_config.h"
15 #include "chrome/common/ipc_sync_channel.h" 17 #include "chrome/common/ipc_sync_channel.h"
16 #include "chrome/common/message_router.h" 18 #include "chrome/common/message_router.h"
19 #include "chrome/common/modal_dialog_event.h"
17 20
18 class FilePath; 21 class SkBitmap;
22 class VisitedLinkSlave;
23 struct WebPreferences;
24 class RenderDnsMaster;
19 class NotificationService; 25 class NotificationService;
20 class RenderDnsMaster;
21 class SkBitmap;
22 class UserScriptSlave; 26 class UserScriptSlave;
23 class VisitedLinkSlave;
24 struct ModalDialogEvent;
25 struct WebPreferences;
26 27
27 // The RenderThreadBase is the minimal interface that a RenderView/Widget 28 // The RenderThreadBase is the minimal interface that a RenderView/Widget
28 // expects from a render thread. The interface basically abstracts a way to send 29 // expects from a render thread. The interface basically abstracts a way to send
29 // and receive messages. 30 // and receive messages.
30 class RenderThreadBase : public IPC::Message::Sender { 31 class RenderThreadBase : public IPC::Message::Sender {
31 public: 32 public:
32 virtual ~RenderThreadBase() {} 33 virtual ~RenderThreadBase() {}
33 34
34 // True if currently sending a message. 35 // True if currently sending a message.
35 virtual bool InSend() const = 0; 36 virtual bool InSend() const = 0;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 int in_send_; 143 int in_send_;
143 144
144 DISALLOW_COPY_AND_ASSIGN(RenderThread); 145 DISALLOW_COPY_AND_ASSIGN(RenderThread);
145 }; 146 };
146 147
147 // The global RenderThread object for this process. Note that this should only 148 // The global RenderThread object for this process. Note that this should only
148 // be accessed when running on the render thread itself. 149 // be accessed when running on the render thread itself.
149 extern RenderThread* g_render_thread; 150 extern RenderThread* g_render_thread;
150 151
151 #endif // CHROME_RENDERER_RENDER_THREAD_H_ 152 #endif // CHROME_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_process.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698