OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // corrupted and thus needs to be terminated using this call. This function | 79 // corrupted and thus needs to be terminated using this call. This function |
80 // can be safely called from any thread. | 80 // can be safely called from any thread. |
81 static void BadMessageTerminateProcess(uint16 msg_type, | 81 static void BadMessageTerminateProcess(uint16 msg_type, |
82 base::ProcessHandle renderer); | 82 base::ProcessHandle renderer); |
83 | 83 |
84 // NotificationObserver implementation. | 84 // NotificationObserver implementation. |
85 virtual void Observe(NotificationType type, | 85 virtual void Observe(NotificationType type, |
86 const NotificationSource& source, | 86 const NotificationSource& source, |
87 const NotificationDetails& details); | 87 const NotificationDetails& details); |
88 | 88 |
| 89 // An extension process started or stopped listening to an event. |
| 90 void OnExtensionAddListener(const std::string& event_name); |
| 91 void OnExtensionRemoveListener(const std::string& event_name); |
| 92 |
89 private: | 93 private: |
90 // Control message handlers. | 94 // Control message handlers. |
91 void OnPageContents(const GURL& url, int32 page_id, | 95 void OnPageContents(const GURL& url, int32 page_id, |
92 const std::wstring& contents); | 96 const std::wstring& contents); |
93 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); | 97 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); |
94 void SuddenTerminationChanged(bool enabled); | 98 void SuddenTerminationChanged(bool enabled); |
95 | 99 |
96 // Initialize support for visited links. Send the renderer process its initial | 100 // Initialize support for visited links. Send the renderer process its initial |
97 // set of visited links. | 101 // set of visited links. |
98 void InitVisitedLinks(); | 102 void InitVisitedLinks(); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // This is used to clear our cache five seconds after the last use. | 149 // This is used to clear our cache five seconds after the last use. |
146 base::DelayTimer<BrowserRenderProcessHost> cached_dibs_cleaner_; | 150 base::DelayTimer<BrowserRenderProcessHost> cached_dibs_cleaner_; |
147 | 151 |
148 // Used in single-process mode. | 152 // Used in single-process mode. |
149 scoped_ptr<RendererMainThread> in_process_renderer_; | 153 scoped_ptr<RendererMainThread> in_process_renderer_; |
150 | 154 |
151 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 155 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
152 }; | 156 }; |
153 | 157 |
154 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 158 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |