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

Side by Side Diff: content/public/browser/background_sync_controller.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class BackgroundSyncManager;
16
17 struct BackgroundSyncParameters; 15 struct BackgroundSyncParameters;
18 16
19 // An interface that the Background Sync API uses to access services from the 17 // An interface that the Background Sync API uses to access services from the
20 // embedder. Must only be used on the UI thread. 18 // embedder. Must only be used on the UI thread.
21 class CONTENT_EXPORT BackgroundSyncController { 19 class CONTENT_EXPORT BackgroundSyncController {
22 public: 20 public:
23 virtual ~BackgroundSyncController() {} 21 virtual ~BackgroundSyncController() {}
24 22
25 // This function allows the controller to alter the parameters used by 23 // This function allows the controller to alter the parameters used by
26 // background sync. Note that disable can be overridden from false to true 24 // background sync. Note that disable can be overridden from false to true
(...skipping 13 matching lines...) Expand all
40 // 38 //
41 // * Other Platforms: (UNIMPLEMENTED) Keeps the browser alive via 39 // * Other Platforms: (UNIMPLEMENTED) Keeps the browser alive via
42 // BackgroundModeManager until called with |enabled| = false. |min_ms| is 40 // BackgroundModeManager until called with |enabled| = false. |min_ms| is
43 // ignored. 41 // ignored.
44 virtual void RunInBackground(bool enabled, int64_t min_ms) {} 42 virtual void RunInBackground(bool enabled, int64_t min_ms) {}
45 }; 43 };
46 44
47 } // namespace content 45 } // namespace content
48 46
49 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_ 47 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_SYNC_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/public/browser/appcache_service.h ('k') | content/public/browser/background_tracing_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698