OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // ChildProcessLauncher::Client implementation. | 80 // ChildProcessLauncher::Client implementation. |
81 virtual void OnProcessLaunched(); | 81 virtual void OnProcessLaunched(); |
82 | 82 |
83 // base::WaitableEventWatcher::Delegate implementation. | 83 // base::WaitableEventWatcher::Delegate implementation. |
84 virtual void OnWaitableEventSignaled( | 84 virtual void OnWaitableEventSignaled( |
85 base::WaitableEvent* waitable_event) OVERRIDE; | 85 base::WaitableEvent* waitable_event) OVERRIDE; |
86 | 86 |
87 private: | 87 private: |
88 friend class VisitRelayingRenderProcessHost; | 88 friend class VisitRelayingRenderProcessHost; |
89 | 89 |
| 90 virtual bool IsSuitableHost(const GURL& site_url) OVERRIDE; |
| 91 |
90 // Creates and adds the IO thread message filters. | 92 // Creates and adds the IO thread message filters. |
91 void CreateMessageFilters(); | 93 void CreateMessageFilters(); |
92 | 94 |
93 // Control message handlers. | 95 // Control message handlers. |
94 void OnShutdownRequest(); | 96 void OnShutdownRequest(); |
95 void OnDumpHandlesDone(); | 97 void OnDumpHandlesDone(); |
96 void SuddenTerminationChanged(bool enabled); | 98 void SuddenTerminationChanged(bool enabled); |
97 void OnUserMetricsRecordAction(const std::string& action); | 99 void OnUserMetricsRecordAction(const std::string& action); |
98 void OnRevealFolderInOS(const FilePath& path); | 100 void OnRevealFolderInOS(const FilePath& path); |
99 void OnSavedPageAsMHTML(int job_id, bool success); | 101 void OnSavedPageAsMHTML(int job_id, bool success); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 166 |
165 #if defined(OS_WIN) | 167 #if defined(OS_WIN) |
166 // Used to wait until the renderer dies to get an accurrate exit code. | 168 // Used to wait until the renderer dies to get an accurrate exit code. |
167 base::WaitableEventWatcher child_process_watcher_; | 169 base::WaitableEventWatcher child_process_watcher_; |
168 #endif | 170 #endif |
169 | 171 |
170 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 172 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
171 }; | 173 }; |
172 | 174 |
173 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 175 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |