#include "base/basictypes.h"
#include "content/common/content_export.h"
+#include "third_party/WebKit/public/platform/WebServiceWorkerState.h"
#include "url/gurl.h"
// This file is to have common definitions that are to be shared by
// and embedded worker.
const static int kInvalidServiceWorkerRequestId = -1;
+// Constants for invalid identifiers.
+const static int kInvalidServiceWorkerHandleId = -1;
const static int kInvalidServiceWorkerProviderId = -1;
+const static int64 kInvalidServiceWorkerRegistrationId = -1;
+const static int64 kInvalidServiceWorkerVersionId = -1;
+const static int64 kInvalidServiceWorkerResourceId = -1;
+const static int64 kInvalidServiceWorkerResponseId = -1;
// To dispatch fetch request from browser to child process.
// TODO(kinuko): This struct will definitely need more fields and
std::map<std::string, std::string> headers;
};
+// Represents initialization info for a WebServiceWorker object.
+struct CONTENT_EXPORT ServiceWorkerObjectInfo {
+ ServiceWorkerObjectInfo();
+ int handle_id;
+ GURL scope;
+ GURL url;
+ blink::WebServiceWorkerState state;
+};
+
} // namespace content
#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_