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

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

Issue 100214: Only send events to renderers that are listening to an event.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_messages_unittest.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