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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_app.h

Issue 1276073004: Offline By Default (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add missing explicits. Created 5 years, 3 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
Index: services/url_response_disk_cache/url_response_disk_cache_app.h
diff --git a/services/url_response_disk_cache/url_response_disk_cache_app.h b/services/url_response_disk_cache/url_response_disk_cache_app.h
index afab2200b97cc599f55ee97aa15a5f132dcf94ef..47c0dd470eddadf5963f55497d2d123bfb92b278 100644
--- a/services/url_response_disk_cache/url_response_disk_cache_app.h
+++ b/services/url_response_disk_cache/url_response_disk_cache_app.h
@@ -6,6 +6,7 @@
#define SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/task_runner.h"
#include "base/threading/sequenced_worker_pool.h"
#include "mojo/public/cpp/application/application_connection.h"
@@ -13,13 +14,14 @@
#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/application/interface_factory.h"
#include "mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom.h"
+#include "services/url_response_disk_cache/url_response_disk_cache_db.h"
namespace mojo {
class URLResponseDiskCacheApp : public ApplicationDelegate,
public InterfaceFactory<URLResponseDiskCache> {
public:
- URLResponseDiskCacheApp(base::TaskRunner* task_runner);
+ explicit URLResponseDiskCacheApp(scoped_refptr<base::TaskRunner> task_runner);
~URLResponseDiskCacheApp() override;
private:
@@ -31,7 +33,8 @@ class URLResponseDiskCacheApp : public ApplicationDelegate,
void Create(ApplicationConnection* connection,
InterfaceRequest<URLResponseDiskCache> request) override;
- base::TaskRunner* task_runner_;
+ scoped_refptr<base::TaskRunner> task_runner_;
+ scoped_refptr<URLResponseDiskCacheDB> db_;
DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheApp);
};
« no previous file with comments | « services/url_response_disk_cache/BUILD.gn ('k') | services/url_response_disk_cache/url_response_disk_cache_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698