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

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

Issue 125280: Send port-closed notification when a frame with ports unloads.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | Annotate | Revision Log
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
93 private: 89 private:
94 // Control message handlers. 90 // Control message handlers.
95 void OnPageContents(const GURL& url, int32 page_id, 91 void OnPageContents(const GURL& url, int32 page_id,
96 const std::wstring& contents); 92 const std::wstring& contents);
97 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); 93 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats);
98 void SuddenTerminationChanged(bool enabled); 94 void SuddenTerminationChanged(bool enabled);
95 void OnExtensionAddListener(const std::string& event_name);
96 void OnExtensionRemoveListener(const std::string& event_name);
97 void OnExtensionCloseChannel(int port_id);
99 98
100 // Initialize support for visited links. Send the renderer process its initial 99 // Initialize support for visited links. Send the renderer process its initial
101 // set of visited links. 100 // set of visited links.
102 void InitVisitedLinks(); 101 void InitVisitedLinks();
103 102
104 // Initialize support for user scripts. Send the renderer process its initial 103 // Initialize support for user scripts. Send the renderer process its initial
105 // set of scripts and listen for updates to scripts. 104 // set of scripts and listen for updates to scripts.
106 void InitUserScripts(); 105 void InitUserScripts();
107 106
108 // Initialize support for extension APIs. Send the list of registered API 107 // Initialize support for extension APIs. Send the list of registered API
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Used in single-process mode. 153 // Used in single-process mode.
155 scoped_ptr<RendererMainThread> in_process_renderer_; 154 scoped_ptr<RendererMainThread> in_process_renderer_;
156 155
157 // True iff the renderer is a child of a zygote process. 156 // True iff the renderer is a child of a zygote process.
158 bool zygote_child_; 157 bool zygote_child_;
159 158
160 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 159 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
161 }; 160 };
162 161
163 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 162 #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