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

Unified Diff: content/browser/background_sync/background_sync_registration.h

Issue 1230213004: [Background Sync] Sent sync registration details to worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bgsync-event-mek
Patch Set: Remove const ref from mojo StructPtr (with rebase) Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/background_sync/background_sync_registration.h
diff --git a/content/browser/background_sync/background_sync_registration.h b/content/browser/background_sync/background_sync_registration.h
index 9d40e354fd99fdd244f610ca477e1a30c36bf487..94d764811eb6fc2136fa96e1e71f78894af5067d 100644
--- a/content/browser/background_sync/background_sync_registration.h
+++ b/content/browser/background_sync/background_sync_registration.h
@@ -5,9 +5,12 @@
#ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_
#define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_
+#include "base/memory/scoped_ptr.h"
#include "content/browser/background_sync/background_sync.pb.h"
#include "content/browser/background_sync/background_sync_registration_options.h"
+#include "content/common/background_sync_service.mojom.h"
#include "content/common/content_export.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h"
namespace content {
@@ -39,4 +42,23 @@ class CONTENT_EXPORT BackgroundSyncRegistration {
} // namespace content
+namespace mojo {
+
+template <>
+struct CONTENT_EXPORT
+ TypeConverter<scoped_ptr<content::BackgroundSyncRegistration>,
+ content::SyncRegistrationPtr> {
+ static scoped_ptr<content::BackgroundSyncRegistration> Convert(
+ const content::SyncRegistrationPtr& input);
+};
+
+template <>
+struct CONTENT_EXPORT TypeConverter<content::SyncRegistrationPtr,
+ content::BackgroundSyncRegistration> {
+ static content::SyncRegistrationPtr Convert(
+ const content::BackgroundSyncRegistration& input);
+};
+
+} // namespace
+
#endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_

Powered by Google App Engine
This is Rietveld 408576698