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

Side by Side Diff: components/offline_pages/core/background/save_page_request.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_SAVE_PAGE_REQUEST_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SAVE_PAGE_REQUEST_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_SAVE_PAGE_REQUEST_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SAVE_PAGE_REQUEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "components/offline_pages/offline_page_item.h" 11 #include "components/offline_pages/core/offline_page_item.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace offline_pages { 14 namespace offline_pages {
15 15
16 // Class representing a request to save page. 16 // Class representing a request to save page.
17 class SavePageRequest { 17 class SavePageRequest {
18 public: 18 public:
19 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages 19 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.offlinepages
20 enum class RequestState { 20 enum class RequestState {
21 AVAILABLE = 0, // Request can be scheduled when preconditions are met. 21 AVAILABLE = 0, // Request can be scheduled when preconditions are met.
22 PAUSED = 1, // Request is not available until it is unpaused. 22 PAUSED = 1, // Request is not available until it is unpaused.
23 OFFLINING = 2, // Request is actively offlining. 23 OFFLINING = 2, // Request is actively offlining.
24 }; 24 };
25 25
26 SavePageRequest(int64_t request_id, 26 SavePageRequest(int64_t request_id,
27 const GURL& url, 27 const GURL& url,
28 const ClientId& client_id, 28 const ClientId& client_id,
29 const base::Time& creation_time, 29 const base::Time& creation_time,
30 const bool user_requested); 30 const bool user_requested);
31 SavePageRequest(int64_t request_id, 31 SavePageRequest(int64_t request_id,
32 const GURL& url, 32 const GURL& url,
33 const ClientId& client_id, 33 const ClientId& client_id,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Whether the user specifically requested this page (as opposed to a client 117 // Whether the user specifically requested this page (as opposed to a client
118 // like AGSA or Now.) 118 // like AGSA or Now.)
119 bool user_requested_; 119 bool user_requested_;
120 120
121 // The current state of this request 121 // The current state of this request
122 RequestState state_; 122 RequestState state_;
123 }; 123 };
124 124
125 } // namespace offline_pages 125 } // namespace offline_pages
126 126
127 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_SAVE_PAGE_REQUEST_H_ 127 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_SAVE_PAGE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698