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

Unified Diff: content/browser/appcache/appcache_update_job.h

Issue 949293002: Implement a poor man's PostAfterStartupTask() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: content/browser/appcache/appcache_update_job.h
diff --git a/content/browser/appcache/appcache_update_job.h b/content/browser/appcache/appcache_update_job.h
index 4d2d896ea74485cbb2757e145de08748a547eca7..48f9bade98d0d7e7af1e321f2e15a9c80a6de35b 100644
--- a/content/browser/appcache/appcache_update_job.h
+++ b/content/browser/appcache/appcache_update_job.h
@@ -14,6 +14,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
+#include "base/timer/timer.h"
#include "content/browser/appcache/appcache.h"
#include "content/browser/appcache/appcache_host.h"
#include "content/browser/appcache/appcache_response.h"
@@ -161,6 +162,8 @@ class CONTENT_EXPORT AppCacheUpdateJob
scoped_ptr<AppCacheResponseWriter> response_writer_;
}; // class URLFetcher
+ void DelayableStart();
+
AppCacheResponseWriter* CreateResponseWriter();
// Methods for AppCacheStorage::Delegate.
@@ -335,6 +338,8 @@ class CONTENT_EXPORT AppCacheUpdateJob
StoredState stored_state_;
AppCacheStorage* storage_;
+ base::OneShotTimer<AppCacheUpdateJob> delayed_start_timer_;
+ base::WeakPtrFactory<AppCacheUpdateJob> weak_factory_;
FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate);
« no previous file with comments | « no previous file | content/browser/appcache/appcache_update_job.cc » ('j') | content/browser/appcache/appcache_update_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698