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

Unified Diff: content/common/service_worker_interfaces.h

Issue 118103002: Add IPC stubs between browser and ServiceWorker's worker context in the child process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_interfaces.h
diff --git a/content/common/service_worker_interfaces.h b/content/common/service_worker_interfaces.h
new file mode 100644
index 0000000000000000000000000000000000000000..d451af5654ff52099b1b9b3a54a8f9d314202a82
--- /dev/null
+++ b/content/common/service_worker_interfaces.h
@@ -0,0 +1,30 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
alecflett 2013/12/19 00:59:11 Quite minor: the name of this file doesn't feel ri
kinuko 2013/12/20 08:01:09 I was thinking about having 'common' types / defin
+// 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_INTERFACES_H_
+#define CONTENT_COMMON_SERVICE_WORKER_INTERFACES_H_
+
+#include <map>
+#include <string>
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+#include "url/gurl.h"
+
+namespace content {
+
+struct CONTENT_EXPORT ServiceWorkerFetchRequest {
+ GURL url;
+ std::string method;
+ std::string referrer;
alecflett 2013/12/19 00:59:11 What is referrer? Does it overlap with the "Referr
kinuko 2013/12/20 08:01:09 Some of them are taken from old prototype code, bu
+ std::map<std::string, std::string> headers;
+ bool is_main_resource_load;
+
+ ServiceWorkerFetchRequest();
alecflett 2013/12/19 00:59:11 If you're going to put constructors on this, is it
kinuko 2013/12/20 08:01:09 Yup. Will do when this struct/class's become more
+ ~ServiceWorkerFetchRequest();
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SERVICE_WORKER_INTERFACES_H_

Powered by Google App Engine
This is Rietveld 408576698