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

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

Issue 2326913003: Privatize StrongBinding lifetime management (Closed)
Patch Set: rebase Created 4 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
index 813a56b91dacd9eae6d5fdfcc369d1669c8800a5..4b4685e1604c6eec3e2c843a438bffdb8b36ac8d 100644
--- a/content/browser/wake_lock/wake_lock_service_impl.h
+++ b/content/browser/wake_lock/wake_lock_service_impl.h
@@ -8,7 +8,6 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "mojo/public/cpp/bindings/interface_request.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
#include "third_party/WebKit/public/platform/modules/wake_lock/wake_lock_service.mojom.h"
namespace content {
@@ -17,11 +16,9 @@ class WakeLockServiceContext;
class WakeLockServiceImpl : public blink::mojom::WakeLockService {
public:
- WakeLockServiceImpl(
- base::WeakPtr<WakeLockServiceContext> context,
- int render_process_id,
- int render_frame_id,
- mojo::InterfaceRequest<blink::mojom::WakeLockService> request);
+ WakeLockServiceImpl(base::WeakPtr<WakeLockServiceContext> context,
+ int render_process_id,
+ int render_frame_id);
~WakeLockServiceImpl() override;
// WakeLockSevice implementation.
@@ -32,7 +29,6 @@ class WakeLockServiceImpl : public blink::mojom::WakeLockService {
base::WeakPtr<WakeLockServiceContext> context_;
const int render_process_id_;
const int render_frame_id_;
- mojo::StrongBinding<blink::mojom::WakeLockService> binding_;
DISALLOW_COPY_AND_ASSIGN(WakeLockServiceImpl);
};
« no previous file with comments | « content/browser/wake_lock/wake_lock_service_context.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