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

Unified Diff: content/common/service_worker/service_worker_traits.h

Issue 871013003: Gather the ServiceWorker client information in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_getvisibilitystate
Patch Set: rebase Created 5 years, 11 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/common/service_worker/service_worker_traits.h
diff --git a/content/common/service_worker/service_worker_traits.h b/content/common/service_worker/service_worker_traits.h
new file mode 100644
index 0000000000000000000000000000000000000000..4326c2005f9560871aa35355d5e440ca55a4d27b
--- /dev/null
+++ b/content/common/service_worker/service_worker_traits.h
@@ -0,0 +1,27 @@
+// 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_COMMON_SERVICE_WORKER_SERVICE_WORKER_TRAITS_H_
+#define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TRAITS_H_
+
+#include "ipc/ipc_message.h"
+#include "ipc/ipc_param_traits.h"
+
+namespace content {
+class ServiceWorkerClientInfo;
+}
+
+namespace IPC {
+
+template <>
+struct ParamTraits<content::ServiceWorkerClientInfo> {
+ typedef content::ServiceWorkerClientInfo param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+} // namespace IPC
+
+#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698