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

Side by Side Diff: content/public/renderer/render_thread.h

Issue 186973002: Add RenderThread::GetShutdownEvent(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/metrics/user_metrics_action.h" 11 #include "base/metrics/user_metrics_action.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ipc/ipc_channel_proxy.h" 13 #include "ipc/ipc_channel_proxy.h"
14 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 #include <windows.h> 17 #include <windows.h>
18 #endif 18 #endif
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace base { 22 namespace base {
23 class MessageLoop; 23 class MessageLoop;
24 class MessageLoopProxy; 24 class MessageLoopProxy;
25 class WaitableEvent;
25 } 26 }
26 27
27 namespace IPC { 28 namespace IPC {
28 class SyncChannel; 29 class SyncChannel;
29 class SyncMessageFilter; 30 class SyncMessageFilter;
30 } 31 }
31 32
32 namespace v8 { 33 namespace v8 {
33 class Extension; 34 class Extension;
34 } 35 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual void UpdateHistograms(int sequence_number) = 0; 115 virtual void UpdateHistograms(int sequence_number) = 0;
115 116
116 // Post task to all worker threads. Returns number of workers. 117 // Post task to all worker threads. Returns number of workers.
117 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0; 118 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0;
118 119
119 // Resolve the proxy servers to use for a given url. On success true is 120 // Resolve the proxy servers to use for a given url. On success true is
120 // returned and |proxy_list| is set to a PAC string containing a list of 121 // returned and |proxy_list| is set to a PAC string containing a list of
121 // proxy servers. 122 // proxy servers.
122 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; 123 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0;
123 124
125 // Gets the shutdown event for the process.
126 virtual base::WaitableEvent* GetShutdownEvent() = 0;
127
124 #if defined(OS_WIN) 128 #if defined(OS_WIN)
125 // Request that the given font be loaded by the browser so it's cached by the 129 // Request that the given font be loaded by the browser so it's cached by the
126 // OS. Please see ChildProcessHost::PreCacheFont for details. 130 // OS. Please see ChildProcessHost::PreCacheFont for details.
127 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 131 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
128 132
129 // Release cached font. 133 // Release cached font.
130 virtual void ReleaseCachedFonts() = 0; 134 virtual void ReleaseCachedFonts() = 0;
131 #endif 135 #endif
132 }; 136 };
133 137
134 } // namespace content 138 } // namespace content
135 139
136 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 140 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « components/nacl/renderer/ppb_nacl_private_impl.cc ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698