diff options
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/renderer/render_thread.h | 6 | ||||
-rw-r--r-- | content/public/test/mock_render_thread.cc | 4 | ||||
-rw-r--r-- | content/public/test/mock_render_thread.h | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/content/public/renderer/render_thread.h b/content/public/renderer/render_thread.h index 353d38a..328a6bd 100644 --- a/content/public/renderer/render_thread.h +++ b/content/public/renderer/render_thread.h @@ -15,6 +15,7 @@ #include <windows.h> #endif +class GURL; class MessageLoop; namespace base { @@ -105,6 +106,11 @@ class CONTENT_EXPORT RenderThread : public IPC::Sender { virtual void UpdateHistograms(int sequence_number) = 0; + // Resolve the proxy servers to use for a given url. On success true is + // returned and |proxy_list| is set to a PAC string containing a list of + // proxy servers. + virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; + #if defined(OS_WIN) // Request that the given font be loaded by the browser so it's cached by the // OS. Please see ChildProcessHost::PreCacheFont for details. diff --git a/content/public/test/mock_render_thread.cc b/content/public/test/mock_render_thread.cc index b532f39..f8332b7 100644 --- a/content/public/test/mock_render_thread.cc +++ b/content/public/test/mock_render_thread.cc @@ -176,6 +176,10 @@ void MockRenderThread::ToggleWebKitSharedTimer(bool suspend) { void MockRenderThread::UpdateHistograms(int sequence_number) { } +bool MockRenderThread::ResolveProxy(const GURL& url, std::string* proxy_list) { + return false; +} + #if defined(OS_WIN) void MockRenderThread::PreCacheFont(const LOGFONT& log_font) { } diff --git a/content/public/test/mock_render_thread.h b/content/public/test/mock_render_thread.h index a241ff0..a20dc54 100644 --- a/content/public/test/mock_render_thread.h +++ b/content/public/test/mock_render_thread.h @@ -69,6 +69,7 @@ class MockRenderThread : public RenderThread { int64 idle_notification_delay_in_ms) OVERRIDE; virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE; virtual void UpdateHistograms(int sequence_number) OVERRIDE; + virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE; #if defined(OS_WIN) virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; virtual void ReleaseCachedFonts() OVERRIDE; |