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

Unified Diff: content/browser/background_fetch/background_fetch_constants.h

Issue 2782553007: Implement the new polling system in the BackgroundFetchJobController (Closed)
Patch Set: Implement the new polling system in the BFJobController Created 3 years, 9 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 | « no previous file | content/browser/background_fetch/background_fetch_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_fetch/background_fetch_constants.h
diff --git a/content/browser/background_fetch/background_fetch_constants.h b/content/browser/background_fetch/background_fetch_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..cb6c42f9939d33180c8e5ec178d9416668374508
--- /dev/null
+++ b/content/browser/background_fetch/background_fetch_constants.h
@@ -0,0 +1,18 @@
+// Copyright 2017 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_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CONSTANTS_H_
+#define CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CONSTANTS_H_
+
+namespace content {
+
+// Maximum number of parallel requests that a Background Fetch should fetch.
+constexpr size_t kMaximumBackgroundFetchParallelRequests = 1;
+
+// Value used to refer to an invalid request index for Background Fetch.
+constexpr int kInvalidBackgroundFetchRequestIndex = -1;
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CONSTANTS_H_
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698