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

Unified Diff: content/browser/wake_lock/wake_lock_service_impl.h

Issue 1345563002: Revert of Wake Lock API implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/wake_lock/wake_lock_service_impl.h
diff --git a/content/browser/wake_lock/wake_lock_service_impl.h b/content/browser/wake_lock/wake_lock_service_impl.h
deleted file mode 100644
index 2c7be1b36e482a1c6b0eca968ea83e32dc5500d4..0000000000000000000000000000000000000000
--- a/content/browser/wake_lock/wake_lock_service_impl.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_IMPL_H_
-#define CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_IMPL_H_
-
-#include "base/memory/weak_ptr.h"
-#include "content/common/wake_lock_service.mojom.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-
-namespace content {
-
-class WakeLockServiceContext;
-
-class WakeLockServiceImpl: public WakeLockService {
- public:
- WakeLockServiceImpl(base::WeakPtr<WakeLockServiceContext> context,
- int frame_id,
- mojo::InterfaceRequest<WakeLockService> request);
- ~WakeLockServiceImpl() override;
-
- // WakeLockSevice implementation.
- void RequestWakeLock() override;
- void CancelWakeLock() override;
-
- private:
- base::WeakPtr<WakeLockServiceContext> context_;
- const int frame_id_;
- mojo::StrongBinding<WakeLockService> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(WakeLockServiceImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_IMPL_H_
« no previous file with comments | « content/browser/wake_lock/wake_lock_service_context_unittest.cc ('k') | content/browser/wake_lock/wake_lock_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698