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

Unified Diff: content/common/service_worker_types.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: ServiceWorker -> EmbeddedWorker, Terminate -> Stop etc 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_types.h
diff --git a/content/common/service_worker_types.h b/content/common/service_worker_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..c0d4b0e98f64164636698808ce0278005647f720
--- /dev/null
+++ b/content/common/service_worker_types.h
@@ -0,0 +1,34 @@
+// Copyright 2013 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_TYPES_H_
+#define CONTENT_COMMON_SERVICE_WORKER_TYPES_H_
+
+#include <map>
+#include <string>
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+#include "url/gurl.h"
+
+// This file is to have common definitions that are to be shared by
+// browser and child process.
+
+namespace content {
+
+// To dispatch fetch request from browser to child process.
+// TODO(kinuko): This struct will definitely need more fields and
+// we'll probably want to have response struct/class too.
+struct CONTENT_EXPORT ServiceWorkerFetchRequest {
+ GURL url;
+ std::string method;
+ std::map<std::string, std::string> headers;
jochen (gone - plz use gerrit) 2013/12/20 09:15:58 should this be net::HttpRequestHeaders?
kinuko 2013/12/20 10:12:42 This struct's going to be sent over IPC, while Htt
+
+ ServiceWorkerFetchRequest();
jochen (gone - plz use gerrit) 2013/12/20 09:15:58 can you move the ctor/dtor before the members. ca
kinuko 2013/12/20 10:12:42 Done.
+ ~ServiceWorkerFetchRequest();
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SERVICE_WORKER_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698