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

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: 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 29 matching lines...) Expand all
40 class BrowserDemuxerAndroid; 40 class BrowserDemuxerAndroid;
41 class GeolocationDispatcherHost; 41 class GeolocationDispatcherHost;
42 class GpuMessageFilter; 42 class GpuMessageFilter;
43 class MessagePortMessageFilter; 43 class MessagePortMessageFilter;
44 class PeerConnectionTrackerHost; 44 class PeerConnectionTrackerHost;
45 class RendererMainThread; 45 class RendererMainThread;
46 class RenderWidgetHelper; 46 class RenderWidgetHelper;
47 class RenderWidgetHost; 47 class RenderWidgetHost;
48 class RenderWidgetHostImpl; 48 class RenderWidgetHostImpl;
49 class RenderWidgetHostViewFrameSubscriber; 49 class RenderWidgetHostViewFrameSubscriber;
50 class ScreenOrientationDispatcherHost;
50 class StoragePartition; 51 class StoragePartition;
51 class StoragePartitionImpl; 52 class StoragePartitionImpl;
52 53
53 // Implements a concrete RenderProcessHost for the browser process for talking 54 // Implements a concrete RenderProcessHost for the browser process for talking
54 // to actual renderer processes (as opposed to mocks). 55 // to actual renderer processes (as opposed to mocks).
55 // 56 //
56 // Represents the browser side of the browser <--> renderer communication 57 // Represents the browser side of the browser <--> renderer communication
57 // channel. There will be one RenderProcessHost per renderer process. 58 // channel. There will be one RenderProcessHost per renderer process.
58 // 59 //
59 // This object is refcounted so that it can release its resources when all 60 // This object is refcounted so that it can release its resources when all
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 scoped_refptr<GeolocationDispatcherHost> 166 scoped_refptr<GeolocationDispatcherHost>
166 geolocation_dispatcher_host() const { 167 geolocation_dispatcher_host() const {
167 return make_scoped_refptr(geolocation_dispatcher_host_); 168 return make_scoped_refptr(geolocation_dispatcher_host_);
168 } 169 }
169 170
170 #if defined(ENABLE_WEBRTC) 171 #if defined(ENABLE_WEBRTC)
171 // Fires the webrtc log message callback with |message|, if callback is set. 172 // Fires the webrtc log message callback with |message|, if callback is set.
172 void WebRtcLogMessage(const std::string& message); 173 void WebRtcLogMessage(const std::string& message);
173 #endif 174 #endif
174 175
176 scoped_refptr<ScreenOrientationDispatcherHost>
177 screen_orientation_dispatcher_host() const;
178
175 // Register/unregister the host identified by the host id in the global host 179 // Register/unregister the host identified by the host id in the global host
176 // list. 180 // list.
177 static void RegisterHost(int host_id, RenderProcessHost* host); 181 static void RegisterHost(int host_id, RenderProcessHost* host);
178 static void UnregisterHost(int host_id); 182 static void UnregisterHost(int host_id);
179 183
180 // Implementation of FilterURL below that can be shared with the mock class. 184 // Implementation of FilterURL below that can be shared with the mock class.
181 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url); 185 static void FilterURL(RenderProcessHost* rph, bool empty_allowed, GURL* url);
182 186
183 // Returns true if |host| is suitable for launching a new view with |site_url| 187 // Returns true if |host| is suitable for launching a new view with |site_url|
184 // in the given |browser_context|. 188 // in the given |browser_context|.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // Message filter for geolocation messages. 408 // Message filter for geolocation messages.
405 GeolocationDispatcherHost* geolocation_dispatcher_host_; 409 GeolocationDispatcherHost* geolocation_dispatcher_host_;
406 410
407 #if defined(ENABLE_WEBRTC) 411 #if defined(ENABLE_WEBRTC)
408 base::Callback<void(const std::string&)> webrtc_log_message_callback_; 412 base::Callback<void(const std::string&)> webrtc_log_message_callback_;
409 #endif 413 #endif
410 414
411 // Lives on the browser's ChildThread. 415 // Lives on the browser's ChildThread.
412 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 416 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
413 417
418 // Message filter and dispatcher for screen orientation.
419 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_;
420
414 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 421 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
415 }; 422 };
416 423
417 } // namespace content 424 } // namespace content
418 425
419 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ 426 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698