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

Side by Side Diff: content/renderer/wake_lock/wake_lock_dispatcher.h

Issue 1878683002: [OnionSoup] Moving WakeLock Service to Blink (1/2): moving .mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/content_common_mojo_bindings.gyp ('k') | media/blink/BUILD.gn » ('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 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_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_
6 #define CONTENT_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_ 6 #define CONTENT_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_
7 7
8 #include "content/common/wake_lock_service.mojom.h"
9 #include "content/public/renderer/render_frame_observer.h" 8 #include "content/public/renderer/render_frame_observer.h"
10 #include "third_party/WebKit/public/platform/modules/wake_lock/WebWakeLockClient .h" 9 #include "third_party/WebKit/public/platform/modules/wake_lock/WebWakeLockClient .h"
10 #include "third_party/WebKit/public/platform/modules/wake_lock/wake_lock_service .mojom.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // WakeLockDispatcher sends wake lock messages to the browser process using the 14 // WakeLockDispatcher sends wake lock messages to the browser process using the
15 // Mojo WakeLockService. 15 // Mojo WakeLockService.
16 class WakeLockDispatcher : public RenderFrameObserver, 16 class WakeLockDispatcher : public RenderFrameObserver,
17 public blink::WebWakeLockClient { 17 public blink::WebWakeLockClient {
18 public: 18 public:
19 explicit WakeLockDispatcher(RenderFrame* render_frame); 19 explicit WakeLockDispatcher(RenderFrame* render_frame);
20 ~WakeLockDispatcher() override; 20 ~WakeLockDispatcher() override;
21 21
22 private: 22 private:
23 // WebWakeLockClient implementation. 23 // WebWakeLockClient implementation.
24 void requestKeepScreenAwake(bool keepScreenAwake) override; 24 void requestKeepScreenAwake(bool keepScreenAwake) override;
25 25
26 mojom::WakeLockServicePtr wake_lock_service_; 26 blink::mojom::WakeLockServicePtr wake_lock_service_;
esprehn 2016/04/11 22:01:49 is this the naming convention others are using too
mcasas 2016/04/11 22:09:12 I think so, moving mojom's to blink shifts them f
27 }; 27 };
28 28
29 } // namespace content 29 } // namespace content
30 30
31 #endif // CONTENT_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_ 31 #endif // CONTENT_RENDERER_WAKE_LOCK_WAKE_LOCK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/content_common_mojo_bindings.gyp ('k') | media/blink/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698