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

Unified Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.h

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 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/in_process_webkit/indexed_db_dispatcher_host.h
===================================================================
--- content/browser/in_process_webkit/indexed_db_dispatcher_host.h (revision 123509)
+++ content/browser/in_process_webkit/indexed_db_dispatcher_host.h (working copy)
@@ -8,11 +8,11 @@
#include "base/basictypes.h"
#include "base/id_map.h"
-#include "content/browser/in_process_webkit/webkit_context.h"
#include "content/public/browser/browser_message_filter.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h"
class GURL;
+class IndexedDBContextImpl;
class IndexedDBKey;
class IndexedDBKeyRange;
class NullableString16;
@@ -44,7 +44,8 @@
class IndexedDBDispatcherHost : public content::BrowserMessageFilter {
public:
// Only call the constructor from the UI thread.
- IndexedDBDispatcherHost(int process_id, WebKitContext* webkit_context);
+ IndexedDBDispatcherHost(int process_id,
+ IndexedDBContextImpl* indexed_db_context);
// content::BrowserMessageFilter implementation.
virtual void OnChannelClosing() OVERRIDE;
@@ -57,9 +58,7 @@
void TransactionComplete(int32 transaction_id);
// A shortcut for accessing our context.
- IndexedDBContextImpl* Context() {
- return webkit_context_->indexed_db_context();
- }
+ IndexedDBContextImpl* Context() { return indexed_db_context_; }
// The various IndexedDBCallbacks children call these methods to add the
// results into the applicable map. See below for more details.
@@ -308,8 +307,7 @@
WebIDBTransactionIDToSizeMap transaction_size_map_;
};
- // Data shared between renderer processes with the same browser context.
- scoped_refptr<WebKitContext> webkit_context_;
+ scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
// Only access on WebKit thread.
scoped_ptr<DatabaseDispatcherHost> database_dispatcher_host_;

Powered by Google App Engine
This is Rietveld 408576698