OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CLIENT_PROXY_H_ | |
6 #define CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CLIENT_PROXY_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 #include "content/public/browser/background_fetch_client.h" | |
12 | |
13 namespace content { | |
14 | |
15 class BackgroundFetchContext; | |
16 | |
17 // The BackgroundFetchClientProxy exists to proxy calls from the | |
18 // BackgroundFetchContext, which lives on the IO thread, to the | |
19 // BackgroundFetchClient which lives on the UI thread and back through the | |
20 // BackgroundFetchClient::Delegate. | |
21 class CONTENT_EXPORT BackgroundFetchClientProxy | |
22 : public BackgroundFetchClient::Delegate { | |
23 public: | |
24 BackgroundFetchClientProxy(BackgroundFetchContext* context); | |
Peter Beverloo
2017/03/31 01:32:23
explicit
harkness
2017/03/31 10:11:44
Done.
| |
25 ~BackgroundFetchClientProxy() override; | |
26 | |
27 // BackgroundFetchClient::Delegate implementation. | |
28 void CancelDownload(const std::string& registration_id) override; | |
29 void PauseDownload(const std::string& registration_id) override; | |
30 void ResumeDownload(const std::string& registration_id) override; | |
31 | |
32 private: | |
33 // The BackgroundFetchClientProxy is owned by the BackgroundFetchContext. | |
34 BackgroundFetchContext* background_fetch_context_; | |
35 }; | |
Peter Beverloo
2017/03/31 01:32:23
DISALLOW_COPY_AND_ASSIGN
harkness
2017/03/31 10:11:44
Done.
| |
36 | |
37 } // namespace content | |
38 | |
39 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_CLIENT_PROXY_H_ | |
OLD | NEW |