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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 164913004: Chromium plumbing for Screen Orientation API orientationchange events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 6 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 class BrowserDemuxerAndroid; 39 class BrowserDemuxerAndroid;
40 class GeolocationDispatcherHost; 40 class GeolocationDispatcherHost;
41 class GpuMessageFilter; 41 class GpuMessageFilter;
42 class MessagePortMessageFilter; 42 class MessagePortMessageFilter;
43 class PeerConnectionTrackerHost; 43 class PeerConnectionTrackerHost;
44 class RendererMainThread; 44 class RendererMainThread;
45 class RenderWidgetHelper; 45 class RenderWidgetHelper;
46 class RenderWidgetHost; 46 class RenderWidgetHost;
47 class RenderWidgetHostImpl; 47 class RenderWidgetHostImpl;
48 class RenderWidgetHostViewFrameSubscriber; 48 class RenderWidgetHostViewFrameSubscriber;
49 class ScreenOrientationDispatcherHost;
49 class StoragePartition; 50 class StoragePartition;
50 class StoragePartitionImpl; 51 class StoragePartitionImpl;
51 52
52 // Implements a concrete RenderProcessHost for the browser process for talking 53 // Implements a concrete RenderProcessHost for the browser process for talking
53 // to actual renderer processes (as opposed to mocks). 54 // to actual renderer processes (as opposed to mocks).
54 // 55 //
55 // Represents the browser side of the browser <--> renderer communication 56 // Represents the browser side of the browser <--> renderer communication
56 // channel. There will be one RenderProcessHost per renderer process. 57 // channel. There will be one RenderProcessHost per renderer process.
57 // 58 //
58 // This object is refcounted so that it can release its resources when all 59 // This object is refcounted so that it can release its resources when all
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 scoped_refptr<GeolocationDispatcherHost> 163 scoped_refptr<GeolocationDispatcherHost>
163 geolocation_dispatcher_host() const { 164 geolocation_dispatcher_host() const {
164 return make_scoped_refptr(geolocation_dispatcher_host_); 165 return make_scoped_refptr(geolocation_dispatcher_host_);
165 } 166 }
166 167
167 #if defined(ENABLE_WEBRTC) 168 #if defined(ENABLE_WEBRTC)
168 // Fires the webrtc log message callback with |message|, if callback is set. 169 // Fires the webrtc log message callback with |message|, if callback is set.
169 void WebRtcLogMessage(const std::string& message); 170 void WebRtcLogMessage(const std::string& message);
170 #endif 171 #endif
171 172
173 scoped_refptr<ScreenOrientationDispatcherHost>
174 screen_orientation_dispatcher_host() const;
jochen (gone - plz use gerrit) 2014/02/20 16:11:04 nit. inline the body here
mlamouri (slow - plz ping) 2014/02/20 16:49:14 Oups, I forgot that one. I did not inline the defi
175
172 // Register/unregister the host identified by the host id in the global host 176 // Register/unregister the host identified by the host id in the global host
173 // list. 177 // list.
174 static void RegisterHost(int host_id, RenderProcessHost* host); 178 static void RegisterHost(int host_id, RenderProcessHost* host);
175 static void UnregisterHost(int host_id); 179 static void UnregisterHost(int host_id);
176 180
177 // Implementation of FilterURL below that can be shared with the mock class. 181 // Implementation of FilterURL below that can be shared with the mock class.
178 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); 182 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url);
179 183
180 // Returns true if |host| is suitable for launching a new view with |site_url| 184 // Returns true if |host| is suitable for launching a new view with |site_url|
181 // in the given |browser_context|. 185 // in the given |browser_context|.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // Message filter for geolocation messages. 405 // Message filter for geolocation messages.
402 GeolocationDispatcherHost* geolocation_dispatcher_host_; 406 GeolocationDispatcherHost* geolocation_dispatcher_host_;
403 407
404 #if defined(ENABLE_WEBRTC) 408 #if defined(ENABLE_WEBRTC)
405 base::Callback<void(const std::string&)> webrtc_log_message_callback_; 409 base::Callback<void(const std::string&)> webrtc_log_message_callback_;
406 #endif 410 #endif
407 411
408 // Lives on the browser's ChildThread. 412 // Lives on the browser's ChildThread.
409 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 413 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
410 414
415 // Message filter and dispatcher for screen orientation.
416 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_;
417
411 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 418 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
412 }; 419 };
413 420
414 } // namespace content 421 } // namespace content
415 422
416 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 423 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698