OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_ |
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/lock.h" | 10 #include "base/lock.h" |
11 #include "base/platform_thread.h" | 11 #include "base/platform_thread.h" |
12 #include "chrome/common/ipc_channel_proxy.h" | 12 #include "ipc/ipc_channel_proxy.h" |
13 | 13 |
14 class URLRequestAutomationJob; | 14 class URLRequestAutomationJob; |
15 class MessageLoop; | 15 class MessageLoop; |
16 | 16 |
17 // This class filters out incoming automation IPC messages for network | 17 // This class filters out incoming automation IPC messages for network |
18 // requests and processes them on the IPC thread. As a result, network | 18 // requests and processes them on the IPC thread. As a result, network |
19 // requests are not delayed by costly UI processing that may be occurring | 19 // requests are not delayed by costly UI processing that may be occurring |
20 // on the main thread of the browser. It also means that any hangs in | 20 // on the main thread of the browser. It also means that any hangs in |
21 // starting a network request will not interfere with browser UI. | 21 // starting a network request will not interfere with browser UI. |
22 class AutomationResourceMessageFilter | 22 class AutomationResourceMessageFilter |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 RequestMap request_map_; | 101 RequestMap request_map_; |
102 | 102 |
103 // Map of render views interested in diverting url requests over automation. | 103 // Map of render views interested in diverting url requests over automation. |
104 static RenderViewMap filtered_render_views_; | 104 static RenderViewMap filtered_render_views_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(AutomationResourceMessageFilter); | 106 DISALLOW_COPY_AND_ASSIGN(AutomationResourceMessageFilter); |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_ | 109 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_RESOURCE_MSG_FILTER_H_ |
110 | 110 |
OLD | NEW |