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

Side by Side Diff: content/browser/media/capture/aura_window_capture_machine.h

Issue 2921823002: Rationalize WakeLock naming conventions (Closed)
Patch Set: rebase Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/browser/media/capture/cursor_renderer_aura.h" 12 #include "content/browser/media/capture/cursor_renderer_aura.h"
13 #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h" 13 #include "device/wake_lock/public/interfaces/wake_lock.mojom.h"
14 #include "media/capture/content/screen_capture_device_core.h" 14 #include "media/capture/content/screen_capture_device_core.h"
15 #include "ui/aura/window.h" 15 #include "ui/aura/window.h"
16 #include "ui/aura/window_observer.h" 16 #include "ui/aura/window_observer.h"
17 #include "ui/base/cursor/cursors_aura.h" 17 #include "ui/base/cursor/cursors_aura.h"
18 #include "ui/compositor/compositor.h" 18 #include "ui/compositor/compositor.h"
19 #include "ui/compositor/compositor_animation_observer.h" 19 #include "ui/compositor/compositor_animation_observer.h"
20 20
21 namespace cc { 21 namespace cc {
22 class CopyOutputResult; 22 class CopyOutputResult;
23 } // namespace cc 23 } // namespace cc
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 media::VideoCaptureParams capture_params_; 117 media::VideoCaptureParams capture_params_;
118 118
119 // YUV readback pipeline. 119 // YUV readback pipeline.
120 std::unique_ptr<viz::ReadbackYUVInterface> yuv_readback_pipeline_; 120 std::unique_ptr<viz::ReadbackYUVInterface> yuv_readback_pipeline_;
121 121
122 // Renders mouse cursor on frame. 122 // Renders mouse cursor on frame.
123 std::unique_ptr<content::CursorRendererAura> cursor_renderer_; 123 std::unique_ptr<content::CursorRendererAura> cursor_renderer_;
124 124
125 // TODO(jiayl): Remove wake_lock_ when there is an API to keep the 125 // TODO(jiayl): Remove wake_lock_ when there is an API to keep the
126 // screen from sleeping for the drive-by web. 126 // screen from sleeping for the drive-by web.
127 device::mojom::WakeLockServicePtr wake_lock_; 127 device::mojom::WakeLockPtr wake_lock_;
128 128
129 // False while frame capture has been suspended. All other aspects of the 129 // False while frame capture has been suspended. All other aspects of the
130 // machine are maintained. 130 // machine are maintained.
131 bool frame_capture_active_; 131 bool frame_capture_active_;
132 132
133 // WeakPtrs are used for the asynchronous capture callbacks passed to external 133 // WeakPtrs are used for the asynchronous capture callbacks passed to external
134 // modules. They are only valid on the UI thread and become invalidated 134 // modules. They are only valid on the UI thread and become invalidated
135 // immediately when InternalStop() is called to ensure that no more captured 135 // immediately when InternalStop() is called to ensure that no more captured
136 // frames will be delivered to the client. 136 // frames will be delivered to the client.
137 base::WeakPtrFactory<AuraWindowCaptureMachine> weak_factory_; 137 base::WeakPtrFactory<AuraWindowCaptureMachine> weak_factory_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(AuraWindowCaptureMachine); 139 DISALLOW_COPY_AND_ASSIGN(AuraWindowCaptureMachine);
140 }; 140 };
141 141
142 } // namespace content 142 } // namespace content
143 143
144 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_ 144 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_AURA_WINDOW_CAPTURE_MACHINE_H_
OLDNEW
« no previous file with comments | « content/browser/loader/wake_lock_resource_throttle.h ('k') | content/browser/media/capture/desktop_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698