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

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

Issue 11649010: Add ResolveProxy to the content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | content/public/test/mock_render_thread.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) 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/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_channel_proxy.h" 11 #include "ipc/ipc_channel_proxy.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 #include <windows.h> 15 #include <windows.h>
16 #endif 16 #endif
17 17
18 class GURL;
18 class MessageLoop; 19 class MessageLoop;
19 20
20 namespace base { 21 namespace base {
21 class MessageLoopProxy; 22 class MessageLoopProxy;
22 } 23 }
23 24
24 namespace IPC { 25 namespace IPC {
25 class SyncChannel; 26 class SyncChannel;
26 class SyncMessageFilter; 27 class SyncMessageFilter;
27 } 28 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Get/Set the delay for how often the idle handler is called. 99 // Get/Set the delay for how often the idle handler is called.
99 virtual int64 GetIdleNotificationDelayInMs() const = 0; 100 virtual int64 GetIdleNotificationDelayInMs() const = 0;
100 virtual void SetIdleNotificationDelayInMs( 101 virtual void SetIdleNotificationDelayInMs(
101 int64 idle_notification_delay_in_ms) = 0; 102 int64 idle_notification_delay_in_ms) = 0;
102 103
103 // Suspend/resume the webkit timer for this renderer. 104 // Suspend/resume the webkit timer for this renderer.
104 virtual void ToggleWebKitSharedTimer(bool suspend) = 0; 105 virtual void ToggleWebKitSharedTimer(bool suspend) = 0;
105 106
106 virtual void UpdateHistograms(int sequence_number) = 0; 107 virtual void UpdateHistograms(int sequence_number) = 0;
107 108
109 // Resolve the proxy servers to use for a given url. On success true is
110 // returned and |proxy_list| is set to a PAC string containing a list of
111 // proxy servers.
112 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0;
113
108 #if defined(OS_WIN) 114 #if defined(OS_WIN)
109 // Request that the given font be loaded by the browser so it's cached by the 115 // Request that the given font be loaded by the browser so it's cached by the
110 // OS. Please see ChildProcessHost::PreCacheFont for details. 116 // OS. Please see ChildProcessHost::PreCacheFont for details.
111 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 117 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
112 118
113 // Release cached font. 119 // Release cached font.
114 virtual void ReleaseCachedFonts() = 0; 120 virtual void ReleaseCachedFonts() = 0;
115 #endif 121 #endif
116 }; 122 };
117 123
118 } // namespace content 124 } // namespace content
119 125
120 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ 126 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698