| OLD | NEW |
| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual void ScheduleIdleHandler(int64_t initial_delay_ms) = 0; | 87 virtual void ScheduleIdleHandler(int64_t initial_delay_ms) = 0; |
| 88 | 88 |
| 89 // A task we invoke periodically to assist with idle cleanup. | 89 // A task we invoke periodically to assist with idle cleanup. |
| 90 virtual void IdleHandler() = 0; | 90 virtual void IdleHandler() = 0; |
| 91 | 91 |
| 92 // Get/Set the delay for how often the idle handler is called. | 92 // Get/Set the delay for how often the idle handler is called. |
| 93 virtual int64_t GetIdleNotificationDelayInMs() const = 0; | 93 virtual int64_t GetIdleNotificationDelayInMs() const = 0; |
| 94 virtual void SetIdleNotificationDelayInMs( | 94 virtual void SetIdleNotificationDelayInMs( |
| 95 int64_t idle_notification_delay_in_ms) = 0; | 95 int64_t idle_notification_delay_in_ms) = 0; |
| 96 | 96 |
| 97 virtual void UpdateHistograms(int sequence_number) = 0; | |
| 98 | |
| 99 // Post task to all worker threads. Returns number of workers. | 97 // Post task to all worker threads. Returns number of workers. |
| 100 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0; | 98 virtual int PostTaskToAllWebWorkers(const base::Closure& closure) = 0; |
| 101 | 99 |
| 102 // Resolve the proxy servers to use for a given url. On success true is | 100 // Resolve the proxy servers to use for a given url. On success true is |
| 103 // returned and |proxy_list| is set to a PAC string containing a list of | 101 // returned and |proxy_list| is set to a PAC string containing a list of |
| 104 // proxy servers. | 102 // proxy servers. |
| 105 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; | 103 virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) = 0; |
| 106 | 104 |
| 107 // Gets the shutdown event for the process. | 105 // Gets the shutdown event for the process. |
| 108 virtual base::WaitableEvent* GetShutdownEvent() = 0; | 106 virtual base::WaitableEvent* GetShutdownEvent() = 0; |
| 109 }; | 107 }; |
| 110 | 108 |
| 111 } // namespace content | 109 } // namespace content |
| 112 | 110 |
| 113 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ | 111 #endif // CONTENT_PUBLIC_RENDERER_RENDER_THREAD_H_ |
| OLD | NEW |