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

Unified Diff: content/renderer/background_sync/background_sync_client_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/renderer/background_sync/background_sync_client_impl.h
diff --git a/content/renderer/background_sync/background_sync_client_impl.h b/content/renderer/background_sync/background_sync_client_impl.h
index a264ffc95144835077fcea7a5e96c9e775218a59..be6e19032dd1ba8f1e522925192d9d65a3cc333e 100644
--- a/content/renderer/background_sync/background_sync_client_impl.h
+++ b/content/renderer/background_sync/background_sync_client_impl.h
@@ -12,7 +12,6 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "content/common/content_export.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
#include "third_party/WebKit/public/platform/modules/background_sync/background_sync.mojom.h"
namespace content {
@@ -20,23 +19,18 @@ namespace content {
class CONTENT_EXPORT BackgroundSyncClientImpl
: public NON_EXPORTED_BASE(blink::mojom::BackgroundSyncServiceClient) {
public:
- static void Create(mojo::InterfaceRequest<
- blink::mojom::BackgroundSyncServiceClient> request);
+ static void Create(blink::mojom::BackgroundSyncServiceClientRequest request);
~BackgroundSyncClientImpl() override;
private:
- explicit BackgroundSyncClientImpl(
- mojo::InterfaceRequest<blink::mojom::BackgroundSyncServiceClient>
- request);
+ BackgroundSyncClientImpl();
// BackgroundSyncServiceClient methods:
void Sync(const mojo::String& tag,
blink::mojom::BackgroundSyncEventLastChance last_chance,
const SyncCallback& callback) override;
- mojo::StrongBinding<blink::mojom::BackgroundSyncServiceClient> binding_;
-
DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl);
};
« no previous file with comments | « content/browser/wake_lock/wake_lock_service_impl.cc ('k') | content/renderer/background_sync/background_sync_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698