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

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

Issue 5513001: Add a base class for objects that want to filter messages on the UI thread. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix possible race condition Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual void Observe(NotificationType type, 98 virtual void Observe(NotificationType type,
99 const NotificationSource& source, 99 const NotificationSource& source,
100 const NotificationDetails& details); 100 const NotificationDetails& details);
101 101
102 // ChildProcessLauncher::Client implementation. 102 // ChildProcessLauncher::Client implementation.
103 virtual void OnProcessLaunched(); 103 virtual void OnProcessLaunched();
104 104
105 private: 105 private:
106 friend class VisitRelayingRenderProcessHost; 106 friend class VisitRelayingRenderProcessHost;
107 107
108 // Creates and adds the IO thread message filters.
109 void CreateMessageFilters();
110
108 // Control message handlers. 111 // Control message handlers.
109 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats); 112 void OnUpdatedCacheStats(const WebKit::WebCache::UsageStats& stats);
110 void SuddenTerminationChanged(bool enabled); 113 void SuddenTerminationChanged(bool enabled);
111 void OnExtensionAddListener(const std::string& extension_id, 114 void OnExtensionAddListener(const std::string& extension_id,
112 const std::string& event_name); 115 const std::string& event_name);
113 void OnExtensionRemoveListener(const std::string& extension_id, 116 void OnExtensionRemoveListener(const std::string& extension_id,
114 const std::string& event_name); 117 const std::string& event_name);
115 void OnExtensionCloseChannel(int port_id); 118 void OnExtensionCloseChannel(int port_id);
116 void OnUserMetricsRecordAction(const std::string& action); 119 void OnUserMetricsRecordAction(const std::string& action);
117 120
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Messages we queue while waiting for the process handle. We queue them here 221 // Messages we queue while waiting for the process handle. We queue them here
219 // instead of in the channel so that we ensure they're sent after init related 222 // instead of in the channel so that we ensure they're sent after init related
220 // messages that are sent once the process handle is available. This is 223 // messages that are sent once the process handle is available. This is
221 // because the queued messages may have dependencies on the init messages. 224 // because the queued messages may have dependencies on the init messages.
222 std::queue<IPC::Message*> queued_messages_; 225 std::queue<IPC::Message*> queued_messages_;
223 226
224 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 227 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
225 }; 228 };
226 229
227 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 230 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698