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

Unified Diff: content/browser/worker_host/worker_storage_partition.cc

Issue 411283002: Remove disable-embedded-shared-worker flag and shared worker process related codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « content/browser/worker_host/worker_storage_partition.h ('k') | content/common/process_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/worker_host/worker_storage_partition.cc
diff --git a/content/browser/worker_host/worker_storage_partition.cc b/content/browser/worker_host/worker_storage_partition.cc
deleted file mode 100644
index e7a5f40660c821c78bedd06a97bbad5d9a57cfe3..0000000000000000000000000000000000000000
--- a/content/browser/worker_host/worker_storage_partition.cc
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/worker_host/worker_storage_partition.h"
-
-#include <string>
-
-#include "content/browser/appcache/chrome_appcache_service.h"
-#include "content/browser/indexed_db/indexed_db_context_impl.h"
-#include "content/browser/service_worker/service_worker_context_wrapper.h"
-#include "net/url_request/url_request_context_getter.h"
-#include "webkit/browser/database/database_tracker.h"
-#include "webkit/browser/fileapi/file_system_context.h"
-#include "webkit/browser/quota/quota_manager.h"
-
-namespace content {
-
-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,
- ServiceWorkerContextWrapper* service_worker_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),
- service_worker_context_(service_worker_context) {
-}
-
-WorkerStoragePartition::WorkerStoragePartition(
- const WorkerStoragePartition& other) {
- Copy(other);
-}
-
-const WorkerStoragePartition& WorkerStoragePartition::operator=(
- const WorkerStoragePartition& rhs) {
- Copy(rhs);
- return *this;
-}
-
-bool WorkerStoragePartition::Equals(
- const WorkerStoragePartition& other) const {
- return url_request_context_.get() == other.url_request_context_.get() &&
- media_url_request_context_.get() ==
- other.media_url_request_context_.get() &&
- appcache_service_.get() == other.appcache_service_.get() &&
- quota_manager_.get() == other.quota_manager_.get() &&
- filesystem_context_.get() == other.filesystem_context_.get() &&
- database_tracker_.get() == other.database_tracker_.get() &&
- indexed_db_context_.get() == other.indexed_db_context_.get() &&
- service_worker_context_.get() == other.service_worker_context_.get();
-}
-
-WorkerStoragePartition::~WorkerStoragePartition() {
-}
-
-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_;
- service_worker_context_ = other.service_worker_context_;
-}
-
-WorkerStoragePartitionId::WorkerStoragePartitionId(
- const WorkerStoragePartition& partition)
- : url_request_context_(partition.url_request_context()),
- media_url_request_context_(partition.media_url_request_context()),
- appcache_service_(partition.appcache_service()),
- quota_manager_(partition.quota_manager()),
- filesystem_context_(partition.filesystem_context()),
- database_tracker_(partition.database_tracker()),
- indexed_db_context_(partition.indexed_db_context()),
- service_worker_context_(partition.service_worker_context()) {
-}
-
-WorkerStoragePartitionId::~WorkerStoragePartitionId() {
-}
-
-bool WorkerStoragePartitionId::Equals(
- const WorkerStoragePartitionId& other) const {
- 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_ &&
- service_worker_context_ == other.service_worker_context_;
-}
-
-} // namespace content
« no previous file with comments | « content/browser/worker_host/worker_storage_partition.h ('k') | content/common/process_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698