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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1794553002: [Playground] Onion Soup: moving ScreenWakeLock to Blink modules/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit DEPS Created 4 years, 8 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/wake_lock/wake_lock_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 #include "content/renderer/render_view_impl.h" 116 #include "content/renderer/render_view_impl.h"
117 #include "content/renderer/render_widget_fullscreen_pepper.h" 117 #include "content/renderer/render_widget_fullscreen_pepper.h"
118 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 118 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
119 #include "content/renderer/renderer_webcolorchooser_impl.h" 119 #include "content/renderer/renderer_webcolorchooser_impl.h"
120 #include "content/renderer/savable_resources.h" 120 #include "content/renderer/savable_resources.h"
121 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" 121 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h"
122 #include "content/renderer/shared_worker_repository.h" 122 #include "content/renderer/shared_worker_repository.h"
123 #include "content/renderer/skia_benchmarking_extension.h" 123 #include "content/renderer/skia_benchmarking_extension.h"
124 #include "content/renderer/stats_collection_controller.h" 124 #include "content/renderer/stats_collection_controller.h"
125 #include "content/renderer/usb/web_usb_client_impl.h" 125 #include "content/renderer/usb/web_usb_client_impl.h"
126 #include "content/renderer/wake_lock/wake_lock_dispatcher.h"
127 #include "content/renderer/web_frame_utils.h" 126 #include "content/renderer/web_frame_utils.h"
128 #include "content/renderer/web_ui_extension.h" 127 #include "content/renderer/web_ui_extension.h"
129 #include "content/renderer/websharedworker_proxy.h" 128 #include "content/renderer/websharedworker_proxy.h"
130 #include "crypto/sha2.h" 129 #include "crypto/sha2.h"
131 #include "gin/modules/module_registry.h" 130 #include "gin/modules/module_registry.h"
132 #include "media/audio/audio_output_device.h" 131 #include "media/audio/audio_output_device.h"
133 #include "media/base/audio_renderer_mixer_input.h" 132 #include "media/base/audio_renderer_mixer_input.h"
134 #include "media/base/cdm_factory.h" 133 #include "media/base/cdm_factory.h"
135 #include "media/base/decoder_factory.h" 134 #include "media/base/decoder_factory.h"
136 #include "media/base/media.h" 135 #include "media/base/media.h"
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 media_session_manager_(NULL), 1005 media_session_manager_(NULL),
1007 #endif 1006 #endif
1008 media_surface_manager_(nullptr), 1007 media_surface_manager_(nullptr),
1009 #if defined(ENABLE_BROWSER_CDMS) 1008 #if defined(ENABLE_BROWSER_CDMS)
1010 cdm_manager_(NULL), 1009 cdm_manager_(NULL),
1011 #endif 1010 #endif
1012 #if defined(VIDEO_HOLE) 1011 #if defined(VIDEO_HOLE)
1013 contains_media_player_(false), 1012 contains_media_player_(false),
1014 #endif 1013 #endif
1015 devtools_agent_(nullptr), 1014 devtools_agent_(nullptr),
1016 wakelock_dispatcher_(nullptr),
1017 geolocation_dispatcher_(NULL), 1015 geolocation_dispatcher_(NULL),
1018 push_messaging_dispatcher_(NULL), 1016 push_messaging_dispatcher_(NULL),
1019 presentation_dispatcher_(NULL), 1017 presentation_dispatcher_(NULL),
1020 blink_service_registry_(service_registry_.GetWeakPtr()), 1018 blink_service_registry_(service_registry_.GetWeakPtr()),
1021 screen_orientation_dispatcher_(NULL), 1019 screen_orientation_dispatcher_(NULL),
1022 manifest_manager_(NULL), 1020 manifest_manager_(NULL),
1023 accessibility_mode_(AccessibilityModeOff), 1021 accessibility_mode_(AccessibilityModeOff),
1024 renderer_accessibility_(NULL), 1022 renderer_accessibility_(NULL),
1025 media_player_delegate_(NULL), 1023 media_player_delegate_(NULL),
1026 is_using_lofi_(false), 1024 is_using_lofi_(false),
(...skipping 3010 matching lines...) Expand 10 before | Expand all | Expand 10 after
4037 static_cast<storage::StorageType>(type), 4035 static_cast<storage::StorageType>(type),
4038 requested_size, 4036 requested_size,
4039 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 4037 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
4040 } 4038 }
4041 4039
4042 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) { 4040 void RenderFrameImpl::willOpenWebSocket(blink::WebSocketHandle* handle) {
4043 WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle); 4041 WebSocketBridge* impl = static_cast<WebSocketBridge*>(handle);
4044 impl->set_render_frame_id(routing_id_); 4042 impl->set_render_frame_id(routing_id_);
4045 } 4043 }
4046 4044
4047 blink::WebWakeLockClient* RenderFrameImpl::wakeLockClient() {
4048 if (!wakelock_dispatcher_)
4049 wakelock_dispatcher_ = new WakeLockDispatcher(this);
4050 return wakelock_dispatcher_;
4051 }
4052
4053 blink::WebGeolocationClient* RenderFrameImpl::geolocationClient() { 4045 blink::WebGeolocationClient* RenderFrameImpl::geolocationClient() {
4054 if (!geolocation_dispatcher_) 4046 if (!geolocation_dispatcher_)
4055 geolocation_dispatcher_ = new GeolocationDispatcher(this); 4047 geolocation_dispatcher_ = new GeolocationDispatcher(this);
4056 return geolocation_dispatcher_; 4048 return geolocation_dispatcher_;
4057 } 4049 }
4058 4050
4059 blink::WebPresentationClient* RenderFrameImpl::presentationClient() { 4051 blink::WebPresentationClient* RenderFrameImpl::presentationClient() {
4060 if (!presentation_dispatcher_) 4052 if (!presentation_dispatcher_)
4061 presentation_dispatcher_ = new PresentationDispatcher(this); 4053 presentation_dispatcher_ = new PresentationDispatcher(this);
4062 return presentation_dispatcher_; 4054 return presentation_dispatcher_;
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
6024 int match_count, 6016 int match_count,
6025 int ordinal, 6017 int ordinal,
6026 const WebRect& selection_rect, 6018 const WebRect& selection_rect,
6027 bool final_status_update) { 6019 bool final_status_update) {
6028 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6020 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6029 selection_rect, ordinal, 6021 selection_rect, ordinal,
6030 final_status_update)); 6022 final_status_update));
6031 } 6023 }
6032 6024
6033 } // namespace content 6025 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/renderer/wake_lock/wake_lock_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698