| Index: content/browser/background_fetch/fetch_request.h
|
| diff --git a/content/browser/background_fetch/fetch_request.h b/content/browser/background_fetch/fetch_request.h
|
| index 23537a72b5b133b9cee62c3e850996a6638826ed..b6881b0f0acd28399a71682d77c83ef8816ae0a6 100644
|
| --- a/content/browser/background_fetch/fetch_request.h
|
| +++ b/content/browser/background_fetch/fetch_request.h
|
| @@ -6,9 +6,7 @@
|
| #define CONTENT_BROWSER_BACKGROUND_FETCH_FETCH_REQUEST_H_
|
|
|
| #include "content/common/content_export.h"
|
| -#include "content/common/service_worker/service_worker_types.h"
|
| #include "url/gurl.h"
|
| -#include "url/origin.h"
|
|
|
| namespace content {
|
|
|
| @@ -16,29 +14,24 @@ namespace content {
|
| class CONTENT_EXPORT FetchRequest {
|
| public:
|
| FetchRequest();
|
| - FetchRequest(const url::Origin& origin,
|
| - const GURL& url,
|
| - int64_t sw_registration_id,
|
| - const std::string& tag);
|
| + FetchRequest(const GURL& url, const std::string& tag);
|
| // TODO(harkness): Remove copy constructor once the final (non-map-based)
|
| // state management is in place.
|
| FetchRequest(const FetchRequest& request);
|
| ~FetchRequest();
|
|
|
| const std::string& guid() const { return guid_; }
|
| - const url::Origin& origin() const { return origin_; }
|
| const GURL& url() const { return url_; }
|
| - int64_t service_worker_registration_id() const {
|
| - return service_worker_registration_id_;
|
| - }
|
| const std::string& tag() const { return tag_; }
|
|
|
| + bool complete() const { return complete_; }
|
| + void set_complete(bool complete) { complete_ = complete; }
|
| +
|
| private:
|
| std::string guid_;
|
| - url::Origin origin_;
|
| GURL url_;
|
| - int64_t service_worker_registration_id_ = kInvalidServiceWorkerRegistrationId;
|
| std::string tag_;
|
| + bool complete_ = false;
|
| };
|
|
|
| } // namespace content
|
|
|