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

Unified Diff: content/browser/resource_context.h

Issue 7237034: sql::MetaTable.next_download_id, DownloadManager::GetNextId() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge AGAIN Created 9 years, 4 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/resource_context.h
diff --git a/content/browser/resource_context.h b/content/browser/resource_context.h
index f2ac4c56ad88c3204cac3cd8074fb540951a5d24..1798d4ce10469d0334df23793ce4153d3020be94 100644
--- a/content/browser/resource_context.h
+++ b/content/browser/resource_context.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/ref_counted.h"
+#include "content/browser/download/download_manager.h"
class ChromeAppCacheService;
class ChromeBlobStorageContext;
@@ -75,6 +76,10 @@ class ResourceContext {
MediaObserver* media_observer() const;
void set_media_observer(MediaObserver* media_observer);
+ const DownloadManager::GetNextIdThunkType& next_download_id_thunk() const;
jam 2011/08/23 17:54:19 it seems odd to add a thunk to ResourceContext. it
benjhayden 2011/08/24 14:33:00 Yes, we are planning on promoting the thunk to a f
jam 2011/08/24 16:35:36 I'm curious, why check in the thunk code if you're
benjhayden 2011/08/24 17:22:36 Initializing the DownloadIdFactory will be a very
+ void set_next_download_id_thunk(
+ const DownloadManager::GetNextIdThunkType& thunk);
+
// =======================================================================
// TODO(willchan): These don't belong in content/. Remove them eventually.
@@ -100,6 +105,7 @@ class ResourceContext {
quota::QuotaManager* quota_manager_;
HostZoomMap* host_zoom_map_;
MediaObserver* media_observer_;
+ DownloadManager::GetNextIdThunkType next_download_id_thunk_;
// Externally-defined data accessible by key.
typedef std::map<const void*, void*> UserDataMap;

Powered by Google App Engine
This is Rietveld 408576698