OLD | NEW |
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> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 static int32 RoutingIDForCurrentContext(); | 156 static int32 RoutingIDForCurrentContext(); |
157 | 157 |
158 // Overridden from RenderThreadBase. | 158 // Overridden from RenderThreadBase. |
159 virtual bool Send(IPC::Message* msg); | 159 virtual bool Send(IPC::Message* msg); |
160 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); | 160 virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); |
161 virtual void RemoveRoute(int32 routing_id); | 161 virtual void RemoveRoute(int32 routing_id); |
162 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter); | 162 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter); |
163 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter); | 163 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter); |
164 virtual void WidgetHidden(); | 164 virtual void WidgetHidden(); |
165 virtual void WidgetRestored(); | 165 virtual void WidgetRestored(); |
166 virtual bool IsExtensionProcess() const { return is_extension_process_; } | 166 virtual bool IsExtensionProcess() const; |
167 virtual bool IsIncognitoProcess() const { return is_incognito_process_; } | 167 virtual bool IsIncognitoProcess() const; |
168 | 168 |
169 // These methods modify how the next message is sent. Normally, when sending | 169 // These methods modify how the next message is sent. Normally, when sending |
170 // a synchronous message that runs a nested message loop, we need to suspend | 170 // a synchronous message that runs a nested message loop, we need to suspend |
171 // callbacks into WebKit. This involves disabling timers and deferring | 171 // callbacks into WebKit. This involves disabling timers and deferring |
172 // resource loads. However, there are exceptions when we need to customize | 172 // resource loads. However, there are exceptions when we need to customize |
173 // the behavior. | 173 // the behavior. |
174 void DoNotSuspendWebKitSharedTimer(); | 174 void DoNotSuspendWebKitSharedTimer(); |
175 void DoNotNotifyWebKitOfModalLoop(); | 175 void DoNotNotifyWebKitOfModalLoop(); |
176 | 176 |
177 VisitedLinkSlave* visited_link_slave() const { | 177 VisitedLinkSlave* visited_link_slave() const { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 408 |
409 // Map of registered v8 extensions. The key is the extension name. The value | 409 // 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 | 410 // is true if the extension should be restricted to extension-related |
411 // contexts. | 411 // contexts. |
412 std::map<std::string, bool> v8_extensions_; | 412 std::map<std::string, bool> v8_extensions_; |
413 | 413 |
414 DISALLOW_COPY_AND_ASSIGN(RenderThread); | 414 DISALLOW_COPY_AND_ASSIGN(RenderThread); |
415 }; | 415 }; |
416 | 416 |
417 #endif // CHROME_RENDERER_RENDER_THREAD_H_ | 417 #endif // CHROME_RENDERER_RENDER_THREAD_H_ |
OLD | NEW |