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

Side by Side Diff: content/public/browser/wake_lock_permission_context.h

Issue 406483004: Initial implementation of API WakeLock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_WAKE_LOCK_PERMISSION_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_WAKE_LOCK_PERMISSION_CONTEXT_H_
7
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h"
11
12 class GURL;
13
14 namespace content {
15
16 class CONTENT_EXPORT WakeLockPermissionContext
17 : public base::RefCountedThreadSafe<WakeLockPermissionContext> {
18 public:
19 typedef base::Callback<void(bool allowed)> WakeLockCallback;
20 virtual void RequestWakeLockPermission(
21 int render_process_id,
22 int render_view_id,
23 const GURL& requesting_frame,
24 WakeLockCallback callback) = 0;
25
26 protected:
27 virtual ~WakeLockPermissionContext() { }
28
29 private:
30 friend class base::RefCountedThreadSafe<WakeLockPermissionContext>;
31 };
32 } // namespace content
33
34 #endif // CONTENT_PUBLIC_BROWSER_WAKE_LOCK_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698