Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.h

Issue 150125: Send port disconnect events when a frame is unloaded. (Closed)
Patch Set: from linux Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // corrupted and thus needs to be terminated using this call. This function 80 // corrupted and thus needs to be terminated using this call. This function
81 // can be safely called from any thread. 81 // can be safely called from any thread.
82 static void BadMessageTerminateProcess(uint16 msg_type, 82 static void BadMessageTerminateProcess(uint16 msg_type,
83 base::ProcessHandle renderer); 83 base::ProcessHandle renderer);
84 84
85 // NotificationObserver implementation. 85 // NotificationObserver implementation.
86 virtual void Observe(NotificationType type, 86 virtual void Observe(NotificationType type,
87 const NotificationSource& source, 87 const NotificationSource& source,
88 const NotificationDetails& details); 88 const NotificationDetails& details);
89 89
90 // An extension process started or stopped listening to an event.
91 void OnExtensionAddListener(const std::string& event_name);
92 void OnExtensionRemoveListener(const std::string& event_name);
93
94 private: 90 private:
95 // Control message handlers. 91 // Control message handlers.
96 void OnPageContents(const GURL& url, int32 page_id, 92 void OnPageContents(const GURL& url, int32 page_id,
97 const std::wstring& contents); 93 const std::wstring& contents);
98 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); 94 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats);
99 void SuddenTerminationChanged(bool enabled); 95 void SuddenTerminationChanged(bool enabled);
96 void OnExtensionAddListener(const std::string& event_name);
97 void OnExtensionRemoveListener(const std::string& event_name);
98 void OnExtensionCloseChannel(int port_id);
100 99
101 // Initialize support for visited links. Send the renderer process its initial 100 // Initialize support for visited links. Send the renderer process its initial
102 // set of visited links. 101 // set of visited links.
103 void InitVisitedLinks(); 102 void InitVisitedLinks();
104 103
105 // Initialize support for user scripts. Send the renderer process its initial 104 // Initialize support for user scripts. Send the renderer process its initial
106 // set of scripts and listen for updates to scripts. 105 // set of scripts and listen for updates to scripts.
107 void InitUserScripts(); 106 void InitUserScripts();
108 107
109 // Initialize support for extension APIs. Send the list of registered API 108 // Initialize support for extension APIs. Send the list of registered API
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Used in single-process mode. 154 // Used in single-process mode.
156 scoped_ptr<RendererMainThread> in_process_renderer_; 155 scoped_ptr<RendererMainThread> in_process_renderer_;
157 156
158 // True iff the renderer is a child of a zygote process. 157 // True iff the renderer is a child of a zygote process.
159 bool zygote_child_; 158 bool zygote_child_;
160 159
161 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 160 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
162 }; 161 };
163 162
164 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 163 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_message_service.cc ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698