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

Unified Diff: public/platform/WebServiceWorkerResponse.h

Issue 1262943002: Move ServiceWorker public headers to public/{web,platform}/modules/serviceworker (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 2 Created 5 years, 4 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
« no previous file with comments | « public/platform/WebServiceWorkerRequest.h ('k') | public/platform/WebServiceWorkerResponseError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebServiceWorkerResponse.h
diff --git a/public/platform/WebServiceWorkerResponse.h b/public/platform/WebServiceWorkerResponse.h
index 8969933480859b3407496735f662529de75f1f4d..15fcee1d843ebc888c05b4ff3e659256e007810a 100644
--- a/public/platform/WebServiceWorkerResponse.h
+++ b/public/platform/WebServiceWorkerResponse.h
@@ -2,91 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WebServiceWorkerResponse_h
-#define WebServiceWorkerResponse_h
-
-#include "WebCommon.h"
-#include "public/platform/WebPrivatePtr.h"
-#include "public/platform/WebServiceWorkerResponseError.h"
-#include "public/platform/WebServiceWorkerResponseType.h"
-#include "public/platform/WebString.h"
-#include "public/platform/WebURL.h"
-#include "public/platform/WebVector.h"
-
-#if INSIDE_BLINK
-#include "wtf/Forward.h"
-#include "wtf/HashMap.h"
-#include "wtf/text/StringHash.h"
-#endif
-
-namespace blink {
-
-class BlobDataHandle;
-class HTTPHeaderMap;
-class WebHTTPHeaderVisitor;
-class WebServiceWorkerResponsePrivate;
-
-// Represents a response to a fetch operation. ServiceWorker uses this to
-// respond to a FetchEvent dispatched by the browser. The plan is for the Cache
-// and fetch() API to also use it.
-class BLINK_PLATFORM_EXPORT WebServiceWorkerResponse {
-public:
- ~WebServiceWorkerResponse() { reset(); }
- WebServiceWorkerResponse();
- WebServiceWorkerResponse(const WebServiceWorkerResponse& other) { assign(other); }
- WebServiceWorkerResponse& operator=(const WebServiceWorkerResponse& other)
- {
- assign(other);
- return *this;
- }
-
- void reset();
- void assign(const WebServiceWorkerResponse&);
-
- void setURL(const WebURL&);
- WebURL url() const;
-
- void setStatus(unsigned short);
- unsigned short status() const;
-
- void setStatusText(const WebString&);
- WebString statusText() const;
-
- void setResponseType(WebServiceWorkerResponseType);
- WebServiceWorkerResponseType responseType() const;
-
- void setHeader(const WebString& key, const WebString& value);
-
- // If the key already exists, appends the value to the same key (comma
- // delimited) else creates a new entry.
- void appendHeader(const WebString& key, const WebString& value);
-
- WebVector<WebString> getHeaderKeys() const;
- WebString getHeader(const WebString& key) const;
- void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) const;
-
- void setBlob(const WebString& uuid, uint64_t size);
- WebString blobUUID() const;
- uint64_t blobSize() const;
-
- void setStreamURL(const WebURL&);
- WebURL streamURL() const;
-
- // Provides a more detailed error when status() is zero.
- void setError(WebServiceWorkerResponseError);
- WebServiceWorkerResponseError error() const;
-
-#if INSIDE_BLINK
- const HTTPHeaderMap& headers() const;
-
- void setBlobDataHandle(PassRefPtr<BlobDataHandle>);
- PassRefPtr<BlobDataHandle> blobDataHandle() const;
-#endif
-
-private:
- WebPrivatePtr<WebServiceWorkerResponsePrivate> m_private;
-};
-
-} // namespace blink
-
-#endif // WebServiceWorkerResponse_h
+#include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
« no previous file with comments | « public/platform/WebServiceWorkerRequest.h ('k') | public/platform/WebServiceWorkerResponseError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698