diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-22 02:05:38 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-22 02:05:38 +0000 |
commit | 0ef2ca320551b318b35b4b6bf1f8b2cd19d33485 (patch) | |
tree | bec772c25785a824e62d788e8476bda433ed07f5 /content | |
parent | fec3e01108c3fcbc657da43d54699e2c66da2738 (diff) | |
download | chromium_src-0ef2ca320551b318b35b4b6bf1f8b2cd19d33485.zip chromium_src-0ef2ca320551b318b35b4b6bf1f8b2cd19d33485.tar.gz chromium_src-0ef2ca320551b318b35b4b6bf1f8b2cd19d33485.tar.bz2 |
Revert 189731 "Proxy queryUsageAndQuota from worker process"
Probably cause of test failures:
FileWriterAbort
FileWriterEvents
> Proxy queryUsageAndQuota from worker process
>
> BUG=88490
>
> Review URL: https://codereview.chromium.org/12948002
TBR=alecflett@chromium.org
Review URL: https://codereview.chromium.org/12634018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@189736 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
6 files changed, 1 insertions, 35 deletions
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index b706674..e248705 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -646,7 +646,6 @@ void RenderProcessHostImpl::CreateMessageFilters() { storage_partition_impl_->GetURLRequestContext(), storage_partition_impl_->GetMediaURLRequestContext(), storage_partition_impl_->GetAppCacheService(), - storage_partition_impl_->GetQuotaManager(), storage_partition_impl_->GetFileSystemContext(), storage_partition_impl_->GetDatabaseTracker(), storage_partition_impl_->GetIndexedDBContext()), diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc index faad9e2..56a2e59 100644 --- a/content/browser/worker_host/worker_process_host.cc +++ b/content/browser/worker_host/worker_process_host.cc @@ -27,7 +27,6 @@ #include "content/browser/mime_registry_message_filter.h" #include "content/browser/renderer_host/database_message_filter.h" #include "content/browser/renderer_host/file_utilities_message_filter.h" -#include "content/browser/renderer_host/quota_dispatcher_host.h" #include "content/browser/renderer_host/render_view_host_delegate.h" #include "content/browser/renderer_host/render_view_host_impl.h" #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" @@ -261,10 +260,6 @@ void WorkerProcessHost::CreateMessageFilters(int render_process_id) { process_->GetHost()->AddFilter(new MimeRegistryMessageFilter()); process_->GetHost()->AddFilter( new DatabaseMessageFilter(partition_.database_tracker())); - process_->GetHost()->AddFilter(new QuotaDispatcherHost( - process_->GetData().id, - partition_.quota_manager(), - GetContentClient()->browser()->CreateQuotaPermissionContext())); SocketStreamDispatcherHost* socket_stream_dispatcher_host = new SocketStreamDispatcherHost( @@ -331,7 +326,7 @@ bool WorkerProcessHost::OnMessageReceived(const IPC::Message& message) { IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowFileSystem, OnAllowFileSystem) IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowIndexedDB, OnAllowIndexedDB) IPC_MESSAGE_UNHANDLED(handled = false) - IPC_END_MESSAGE_MAP_EX() + IPC_END_MESSAGE_MAP_EX() if (!msg_is_ok) { NOTREACHED(); diff --git a/content/browser/worker_host/worker_storage_partition.cc b/content/browser/worker_host/worker_storage_partition.cc index f9d47d1..ad564c3 100644 --- a/content/browser/worker_host/worker_storage_partition.cc +++ b/content/browser/worker_host/worker_storage_partition.cc @@ -11,7 +11,6 @@ #include "net/url_request/url_request_context_getter.h" #include "webkit/database/database_tracker.h" #include "webkit/fileapi/file_system_context.h" -#include "webkit/quota/quota_manager.h" namespace content { @@ -19,14 +18,12 @@ WorkerStoragePartition::WorkerStoragePartition( net::URLRequestContextGetter* url_request_context, net::URLRequestContextGetter* media_url_request_context, ChromeAppCacheService* appcache_service, - quota::QuotaManager* quota_manager, fileapi::FileSystemContext* filesystem_context, webkit_database::DatabaseTracker* database_tracker, IndexedDBContextImpl* indexed_db_context) : url_request_context_(url_request_context), media_url_request_context_(media_url_request_context), appcache_service_(appcache_service), - quota_manager_(quota_manager), filesystem_context_(filesystem_context), database_tracker_(database_tracker), indexed_db_context_(indexed_db_context) { @@ -48,7 +45,6 @@ bool WorkerStoragePartition::Equals( return url_request_context_ == other.url_request_context_ && media_url_request_context_ == other.media_url_request_context_ && appcache_service_ == other.appcache_service_ && - quota_manager_ == other.quota_manager_ && filesystem_context_ == other.filesystem_context_ && database_tracker_ == other.database_tracker_ && indexed_db_context_ == other.indexed_db_context_; @@ -61,7 +57,6 @@ void WorkerStoragePartition::Copy(const WorkerStoragePartition& other) { url_request_context_ = other.url_request_context_; media_url_request_context_ = other.media_url_request_context_; appcache_service_ = other.appcache_service_; - quota_manager_ = other.quota_manager_; filesystem_context_ = other.filesystem_context_; database_tracker_ = other.database_tracker_; indexed_db_context_ = other.indexed_db_context_; diff --git a/content/browser/worker_host/worker_storage_partition.h b/content/browser/worker_host/worker_storage_partition.h index 49c2deae..1b59b90 100644 --- a/content/browser/worker_host/worker_storage_partition.h +++ b/content/browser/worker_host/worker_storage_partition.h @@ -7,10 +7,6 @@ #include "base/memory/ref_counted.h" -namespace quota { -class QuotaManager; -} - namespace fileapi { class FileSystemContext; } // namespace fileapi @@ -45,7 +41,6 @@ class WorkerStoragePartition { net::URLRequestContextGetter* url_request_context, net::URLRequestContextGetter* media_url_request_context, ChromeAppCacheService* appcache_service, - quota::QuotaManager* quota_manager, fileapi::FileSystemContext* filesystem_context, webkit_database::DatabaseTracker* database_tracker, IndexedDBContextImpl* indexed_db_context); @@ -71,10 +66,6 @@ class WorkerStoragePartition { return appcache_service_.get(); } - quota::QuotaManager* quota_manager() const { - return quota_manager_.get(); - } - fileapi::FileSystemContext* filesystem_context() const { return filesystem_context_.get(); } @@ -93,7 +84,6 @@ class WorkerStoragePartition { scoped_refptr<net::URLRequestContextGetter> url_request_context_; scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; scoped_refptr<ChromeAppCacheService> appcache_service_; - scoped_refptr<quota::QuotaManager> quota_manager_; scoped_refptr<fileapi::FileSystemContext> filesystem_context_; scoped_refptr<webkit_database::DatabaseTracker> database_tracker_; scoped_refptr<IndexedDBContextImpl> indexed_db_context_; diff --git a/content/worker/websharedworkerclient_proxy.cc b/content/worker/websharedworkerclient_proxy.cc index 049361e..01913cb 100644 --- a/content/worker/websharedworkerclient_proxy.cc +++ b/content/worker/websharedworkerclient_proxy.cc @@ -9,7 +9,6 @@ #include "base/message_loop.h" #include "content/common/fileapi/file_system_dispatcher.h" #include "content/common/fileapi/webfilesystem_callback_dispatcher.h" -#include "content/common/quota_dispatcher.h" #include "content/common/webmessageportchannel_impl.h" #include "content/common/worker_messages.h" #include "content/public/common/content_switches.h" @@ -178,14 +177,6 @@ bool WebSharedWorkerClientProxy::allowIndexedDB(const WebKit::WebString& name) { return result; } -void WebSharedWorkerClientProxy::queryUsageAndQuota( - WebKit::WebStorageQuotaType type, - WebKit::WebStorageQuotaCallbacks* callbacks) { - ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota( - stub_->url().GetOrigin(), static_cast<quota::StorageType>(type), - QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); -} - void WebSharedWorkerClientProxy::dispatchDevToolsMessage( const WebString& message) { if (devtools_agent_) diff --git a/content/worker/websharedworkerclient_proxy.h b/content/worker/websharedworkerclient_proxy.h index d560628..bc26a29 100644 --- a/content/worker/websharedworkerclient_proxy.h +++ b/content/worker/websharedworkerclient_proxy.h @@ -11,8 +11,6 @@ #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerClient.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaCallbacks.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaType.h" namespace WebKit { class WebApplicationCacheHost; @@ -83,8 +81,6 @@ class WebSharedWorkerClientProxy : public WebKit::WebSharedWorkerClient { bool create, WebKit::WebFileSystemCallbacks* callbacks); virtual bool allowIndexedDB(const WebKit::WebString&); - virtual void queryUsageAndQuota(WebKit::WebStorageQuotaType, - WebKit::WebStorageQuotaCallbacks*); virtual void dispatchDevToolsMessage(const WebKit::WebString&); virtual void saveDevToolsAgentState(const WebKit::WebString&); |