summaryrefslogtreecommitdiffstats
path: root/content/browser
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-02-24 12:55:21 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-24 20:56:11 +0000
commit33895d99a4d329bd617013bcf4b49732c57d26f5 (patch)
tree0287b62fda5658097ab25dba1926006e7d2cc5d6 /content/browser
parent1c5a91494d8f96fb5c59029af46e0d39a781ee59 (diff)
downloadchromium_src-33895d99a4d329bd617013bcf4b49732c57d26f5.zip
chromium_src-33895d99a4d329bd617013bcf4b49732c57d26f5.tar.gz
chromium_src-33895d99a4d329bd617013bcf4b49732c57d26f5.tar.bz2
content: Add out-of-line copy ctors for complex classes.
This patch adds out of line copy constructors for classes that our clang-plugin considers heavy. This is an effort to enable copy constructor checks by default. BUG=436357 R=sievers@chromium.org, dcheng@chromium.org, thakis@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Review URL: https://codereview.chromium.org/1728043002 Cr-Commit-Position: refs/heads/master@{#377378}
Diffstat (limited to 'content/browser')
-rw-r--r--content/browser/appcache/appcache_database.cc2
-rw-r--r--content/browser/appcache/appcache_database.h1
-rw-r--r--content/browser/appcache/appcache_disk_cache.cc2
-rw-r--r--content/browser/appcache/appcache_disk_cache.h2
-rw-r--r--content/browser/appcache/appcache_update_job.cc2
-rw-r--r--content/browser/appcache/appcache_update_job.h1
-rw-r--r--content/browser/background_sync/background_sync_manager.cc3
-rw-r--r--content/browser/background_sync/background_sync_manager.h1
-rw-r--r--content/browser/dom_storage/dom_storage_host.cc2
-rw-r--r--content/browser/dom_storage/dom_storage_host.h1
-rw-r--r--content/browser/dom_storage/dom_storage_namespace.cc2
-rw-r--r--content/browser/dom_storage/dom_storage_namespace.h1
-rw-r--r--content/browser/download/download_request_handle.cc3
-rw-r--r--content/browser/download/download_request_handle.h1
-rw-r--r--content/browser/download/save_types.cc3
-rw-r--r--content/browser/download/save_types.h2
-rw-r--r--content/browser/frame_host/frame_tree.cc2
-rw-r--r--content/browser/frame_host/frame_tree.h1
-rw-r--r--content/browser/gamepad/gamepad_provider.cc3
-rw-r--r--content/browser/gamepad/gamepad_provider.h1
-rw-r--r--content/browser/geolocation/wifi_data.cc2
-rw-r--r--content/browser/geolocation/wifi_data.h1
-rw-r--r--content/browser/indexed_db/indexed_db_backing_store.cc2
-rw-r--r--content/browser/indexed_db/indexed_db_backing_store.h1
-rw-r--r--content/browser/indexed_db/indexed_db_pending_connection.cc3
-rw-r--r--content/browser/indexed_db/indexed_db_pending_connection.h1
-rw-r--r--content/browser/media/capture/audio_mirroring_manager.cc3
-rw-r--r--content/browser/media/capture/audio_mirroring_manager.h1
-rw-r--r--content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc3
-rw-r--r--content/browser/renderer_host/input/synthetic_smooth_move_gesture.h2
-rw-r--r--content/browser/renderer_host/media/audio_output_device_enumerator.cc3
-rw-r--r--content/browser/renderer_host/media/audio_output_device_enumerator.h1
-rw-r--r--content/browser/renderer_host/p2p/socket_host_udp.cc3
-rw-r--r--content/browser/renderer_host/p2p/socket_host_udp.h1
-rw-r--r--content/browser/renderer_host/pepper/pepper_file_io_host.cc3
-rw-r--r--content/browser/renderer_host/pepper/pepper_file_io_host.h1
-rw-r--r--content/browser/renderer_host/pepper/pepper_network_proxy_host.cc3
-rw-r--r--content/browser/renderer_host/pepper/pepper_network_proxy_host.h1
-rw-r--r--content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc3
-rw-r--r--content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h1
-rw-r--r--content/browser/service_worker/service_worker_database.cc3
-rw-r--r--content/browser/service_worker/service_worker_database.h1
-rw-r--r--content/browser/service_worker/service_worker_info.cc6
-rw-r--r--content/browser/service_worker/service_worker_info.h2
-rw-r--r--content/browser/service_worker/service_worker_job_coordinator.cc3
-rw-r--r--content/browser/service_worker/service_worker_job_coordinator.h1
-rw-r--r--content/browser/service_worker/service_worker_process_manager.cc3
-rw-r--r--content/browser/service_worker/service_worker_process_manager.h1
-rw-r--r--content/browser/service_worker/service_worker_storage.cc3
-rw-r--r--content/browser/service_worker/service_worker_storage.h1
-rw-r--r--content/browser/speech/speech_recognizer_impl.cc3
-rw-r--r--content/browser/speech/speech_recognizer_impl.h1
52 files changed, 103 insertions, 0 deletions
diff --git a/content/browser/appcache/appcache_database.cc b/content/browser/appcache/appcache_database.cc
index f9e83ac..f3053c7 100644
--- a/content/browser/appcache/appcache_database.cc
+++ b/content/browser/appcache/appcache_database.cc
@@ -191,6 +191,8 @@ AppCacheDatabase::GroupRecord::GroupRecord()
: group_id(0) {
}
+AppCacheDatabase::GroupRecord::GroupRecord(const GroupRecord& other) = default;
+
AppCacheDatabase::GroupRecord::~GroupRecord() {
}
diff --git a/content/browser/appcache/appcache_database.h b/content/browser/appcache/appcache_database.h
index a6f017e..e2b265d 100644
--- a/content/browser/appcache/appcache_database.h
+++ b/content/browser/appcache/appcache_database.h
@@ -51,6 +51,7 @@ class CONTENT_EXPORT AppCacheDatabase {
public:
struct CONTENT_EXPORT GroupRecord {
GroupRecord();
+ GroupRecord(const GroupRecord& other);
~GroupRecord();
int64_t group_id;
diff --git a/content/browser/appcache/appcache_disk_cache.cc b/content/browser/appcache/appcache_disk_cache.cc
index 49030f0..da5475d 100644
--- a/content/browser/appcache/appcache_disk_cache.cc
+++ b/content/browser/appcache/appcache_disk_cache.cc
@@ -336,6 +336,8 @@ AppCacheDiskCache::PendingCall::PendingCall(
const net::CompletionCallback& callback)
: call_type(call_type), key(key), entry(entry), callback(callback) {}
+AppCacheDiskCache::PendingCall::PendingCall(const PendingCall& other) = default;
+
AppCacheDiskCache::PendingCall::~PendingCall() {}
int AppCacheDiskCache::Init(
diff --git a/content/browser/appcache/appcache_disk_cache.h b/content/browser/appcache/appcache_disk_cache.h
index 2b8c299..d06bcf5 100644
--- a/content/browser/appcache/appcache_disk_cache.h
+++ b/content/browser/appcache/appcache_disk_cache.h
@@ -89,6 +89,8 @@ class CONTENT_EXPORT AppCacheDiskCache
Entry** entry,
const net::CompletionCallback& callback);
+ PendingCall(const PendingCall& other);
+
~PendingCall();
};
typedef std::vector<PendingCall> PendingCalls;
diff --git a/content/browser/appcache/appcache_update_job.cc b/content/browser/appcache/appcache_update_job.cc
index b7133fc..7c922f8 100644
--- a/content/browser/appcache/appcache_update_job.cc
+++ b/content/browser/appcache/appcache_update_job.cc
@@ -140,6 +140,8 @@ AppCacheUpdateJob::UrlToFetch::UrlToFetch(const GURL& url,
existing_response_info(info) {
}
+AppCacheUpdateJob::UrlToFetch::UrlToFetch(const UrlToFetch& other) = default;
+
AppCacheUpdateJob::UrlToFetch::~UrlToFetch() {
}
diff --git a/content/browser/appcache/appcache_update_job.h b/content/browser/appcache/appcache_update_job.h
index f1c7af0..4fa1588 100644
--- a/content/browser/appcache/appcache_update_job.h
+++ b/content/browser/appcache/appcache_update_job.h
@@ -101,6 +101,7 @@ class CONTENT_EXPORT AppCacheUpdateJob
struct UrlToFetch {
UrlToFetch(const GURL& url, bool checked, AppCacheResponseInfo* info);
+ UrlToFetch(const UrlToFetch& other);
~UrlToFetch();
GURL url;
diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
index 25f9532..4cc3901 100644
--- a/content/browser/background_sync/background_sync_manager.cc
+++ b/content/browser/background_sync/background_sync_manager.cc
@@ -139,6 +139,9 @@ BackgroundSyncManager::BackgroundSyncRegistrations::
: next_id(BackgroundSyncRegistration::kInitialId) {
}
+BackgroundSyncManager::BackgroundSyncRegistrations::BackgroundSyncRegistrations(
+ const BackgroundSyncRegistrations& other) = default;
+
BackgroundSyncManager::BackgroundSyncRegistrations::
~BackgroundSyncRegistrations() {
}
diff --git a/content/browser/background_sync/background_sync_manager.h b/content/browser/background_sync/background_sync_manager.h
index 448b470..fe3eda6 100644
--- a/content/browser/background_sync/background_sync_manager.h
+++ b/content/browser/background_sync/background_sync_manager.h
@@ -164,6 +164,7 @@ class CONTENT_EXPORT BackgroundSyncManager
std::map<RegistrationKey, scoped_refptr<RefCountedRegistration>>;
BackgroundSyncRegistrations();
+ BackgroundSyncRegistrations(const BackgroundSyncRegistrations& other);
~BackgroundSyncRegistrations();
RegistrationMap registration_map;
diff --git a/content/browser/dom_storage/dom_storage_host.cc b/content/browser/dom_storage/dom_storage_host.cc
index 14d288d..3db7d5a 100644
--- a/content/browser/dom_storage/dom_storage_host.cc
+++ b/content/browser/dom_storage/dom_storage_host.cc
@@ -153,6 +153,8 @@ DOMStorageNamespace* DOMStorageHost::GetNamespace(int connection_id) {
// NamespaceAndArea
DOMStorageHost::NamespaceAndArea::NamespaceAndArea() {}
+DOMStorageHost::NamespaceAndArea::NamespaceAndArea(
+ const NamespaceAndArea& other) = default;
DOMStorageHost::NamespaceAndArea::~NamespaceAndArea() {}
} // namespace content
diff --git a/content/browser/dom_storage/dom_storage_host.h b/content/browser/dom_storage/dom_storage_host.h
index 9b79406..d53bd15 100644
--- a/content/browser/dom_storage/dom_storage_host.h
+++ b/content/browser/dom_storage/dom_storage_host.h
@@ -57,6 +57,7 @@ class CONTENT_EXPORT DOMStorageHost {
scoped_refptr<DOMStorageNamespace> namespace_;
scoped_refptr<DOMStorageArea> area_;
NamespaceAndArea();
+ NamespaceAndArea(const NamespaceAndArea& other);
~NamespaceAndArea();
};
typedef std::map<int, NamespaceAndArea > AreaMap;
diff --git a/content/browser/dom_storage/dom_storage_namespace.cc b/content/browser/dom_storage/dom_storage_namespace.cc
index 25e44e5..a8681b6 100644
--- a/content/browser/dom_storage/dom_storage_namespace.cc
+++ b/content/browser/dom_storage/dom_storage_namespace.cc
@@ -195,6 +195,8 @@ DOMStorageNamespace::AreaHolder::AreaHolder(
: area_(area), open_count_(count) {
}
+DOMStorageNamespace::AreaHolder::AreaHolder(const AreaHolder& other) = default;
+
DOMStorageNamespace::AreaHolder::~AreaHolder() {
}
diff --git a/content/browser/dom_storage/dom_storage_namespace.h b/content/browser/dom_storage/dom_storage_namespace.h
index a9f6569..238b7ca 100644
--- a/content/browser/dom_storage/dom_storage_namespace.h
+++ b/content/browser/dom_storage/dom_storage_namespace.h
@@ -86,6 +86,7 @@ class CONTENT_EXPORT DOMStorageNamespace
int open_count_;
AreaHolder();
AreaHolder(DOMStorageArea* area, int count);
+ AreaHolder(const AreaHolder& other);
~AreaHolder();
};
typedef std::map<GURL, AreaHolder> AreaMap;
diff --git a/content/browser/download/download_request_handle.cc b/content/browser/download/download_request_handle.cc
index 67dda4f..8a46917 100644
--- a/content/browser/download/download_request_handle.cc
+++ b/content/browser/download/download_request_handle.cc
@@ -18,6 +18,9 @@ namespace content {
DownloadRequestHandleInterface::~DownloadRequestHandleInterface() {}
+DownloadRequestHandle::DownloadRequestHandle(
+ const DownloadRequestHandle& other) = default;
+
DownloadRequestHandle::~DownloadRequestHandle() {}
DownloadRequestHandle::DownloadRequestHandle()
diff --git a/content/browser/download/download_request_handle.h b/content/browser/download/download_request_handle.h
index 5d047c7..b74d9d2 100644
--- a/content/browser/download/download_request_handle.h
+++ b/content/browser/download/download_request_handle.h
@@ -45,6 +45,7 @@ class CONTENT_EXPORT DownloadRequestHandleInterface {
class CONTENT_EXPORT DownloadRequestHandle
: public DownloadRequestHandleInterface {
public:
+ DownloadRequestHandle(const DownloadRequestHandle& other);
~DownloadRequestHandle() override;
// Create a null DownloadRequestHandle: getters will return null, and
diff --git a/content/browser/download/save_types.cc b/content/browser/download/save_types.cc
index 9c4972a..0dd7605 100644
--- a/content/browser/download/save_types.cc
+++ b/content/browser/download/save_types.cc
@@ -45,6 +45,9 @@ SaveFileCreateInfo::SaveFileCreateInfo(const GURL& url,
total_bytes(total_bytes),
save_source(SaveFileCreateInfo::SAVE_FILE_FROM_NET) {}
+SaveFileCreateInfo::SaveFileCreateInfo(const SaveFileCreateInfo& other) =
+ default;
+
SaveFileCreateInfo::~SaveFileCreateInfo() {}
} // namespace content
diff --git a/content/browser/download/save_types.h b/content/browser/download/save_types.h
index a9ab45c..9d61a9a 100644
--- a/content/browser/download/save_types.h
+++ b/content/browser/download/save_types.h
@@ -63,6 +63,8 @@ struct SaveFileCreateInfo {
const std::string& content_disposition,
int64_t total_bytes);
+ SaveFileCreateInfo(const SaveFileCreateInfo& other);
+
~SaveFileCreateInfo();
// SaveItem fields.
diff --git a/content/browser/frame_host/frame_tree.cc b/content/browser/frame_host/frame_tree.cc
index 199edd4..ceb5985 100644
--- a/content/browser/frame_host/frame_tree.cc
+++ b/content/browser/frame_host/frame_tree.cc
@@ -40,6 +40,8 @@ std::set<SiteInstance*> CollectSiteInstances(FrameTree* tree) {
} // namespace
+FrameTree::NodeIterator::NodeIterator(const NodeIterator& other) = default;
+
FrameTree::NodeIterator::~NodeIterator() {}
FrameTree::NodeIterator& FrameTree::NodeIterator::operator++() {
diff --git a/content/browser/frame_host/frame_tree.h b/content/browser/frame_host/frame_tree.h
index d9fc1b6..d6638e2 100644
--- a/content/browser/frame_host/frame_tree.h
+++ b/content/browser/frame_host/frame_tree.h
@@ -45,6 +45,7 @@ class CONTENT_EXPORT FrameTree {
class CONTENT_EXPORT NodeIterator {
public:
+ NodeIterator(const NodeIterator& other);
~NodeIterator();
NodeIterator& operator++();
diff --git a/content/browser/gamepad/gamepad_provider.cc b/content/browser/gamepad/gamepad_provider.cc
index 682afc5..fea94e0 100644
--- a/content/browser/gamepad/gamepad_provider.cc
+++ b/content/browser/gamepad/gamepad_provider.cc
@@ -39,6 +39,9 @@ GamepadProvider::ClosureAndThread::ClosureAndThread(
: closure(c), task_runner(m) {
}
+GamepadProvider::ClosureAndThread::ClosureAndThread(
+ const ClosureAndThread& other) = default;
+
GamepadProvider::ClosureAndThread::~ClosureAndThread() {
}
diff --git a/content/browser/gamepad/gamepad_provider.h b/content/browser/gamepad/gamepad_provider.h
index f2dcad2..fa15411 100644
--- a/content/browser/gamepad/gamepad_provider.h
+++ b/content/browser/gamepad/gamepad_provider.h
@@ -106,6 +106,7 @@ class CONTENT_EXPORT GamepadProvider :
struct ClosureAndThread {
ClosureAndThread(const base::Closure& c,
const scoped_refptr<base::SingleThreadTaskRunner>& m);
+ ClosureAndThread(const ClosureAndThread& other);
~ClosureAndThread();
base::Closure closure;
diff --git a/content/browser/geolocation/wifi_data.cc b/content/browser/geolocation/wifi_data.cc
index 2f41c33..d82e6f4 100644
--- a/content/browser/geolocation/wifi_data.cc
+++ b/content/browser/geolocation/wifi_data.cc
@@ -23,6 +23,8 @@ AccessPointData::~AccessPointData() {}
WifiData::WifiData() {}
+WifiData::WifiData(const WifiData& other) = default;
+
WifiData::~WifiData() {}
bool WifiData::DiffersSignificantly(const WifiData& other) const {
diff --git a/content/browser/geolocation/wifi_data.h b/content/browser/geolocation/wifi_data.h
index d6e0b33..b3cf569 100644
--- a/content/browser/geolocation/wifi_data.h
+++ b/content/browser/geolocation/wifi_data.h
@@ -37,6 +37,7 @@ struct AccessPointDataLess {
// All data for wifi.
struct CONTENT_EXPORT WifiData {
WifiData();
+ WifiData(const WifiData& other);
~WifiData();
// Determines whether a new set of WiFi data differs significantly from this.
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index dc4f336..b6f9ae1 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -798,6 +798,8 @@ IndexedDBBackingStore::RecordIdentifier::RecordIdentifier()
IndexedDBBackingStore::RecordIdentifier::~RecordIdentifier() {}
IndexedDBBackingStore::Cursor::CursorOptions::CursorOptions() {}
+IndexedDBBackingStore::Cursor::CursorOptions::CursorOptions(
+ const CursorOptions& other) = default;
IndexedDBBackingStore::Cursor::CursorOptions::~CursorOptions() {}
// Values match entries in tools/metrics/histograms/histograms.xml
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h
index 0c61c8b..69812ce 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -287,6 +287,7 @@ class CONTENT_EXPORT IndexedDBBackingStore
struct CursorOptions {
CursorOptions();
+ CursorOptions(const CursorOptions& other);
~CursorOptions();
int64_t database_id;
int64_t object_store_id;
diff --git a/content/browser/indexed_db/indexed_db_pending_connection.cc b/content/browser/indexed_db/indexed_db_pending_connection.cc
index ee16aba..34f4924 100644
--- a/content/browser/indexed_db/indexed_db_pending_connection.cc
+++ b/content/browser/indexed_db/indexed_db_pending_connection.cc
@@ -18,6 +18,9 @@ IndexedDBPendingConnection::IndexedDBPendingConnection(
transaction_id(transaction_id_in),
version(version_in) {}
+IndexedDBPendingConnection::IndexedDBPendingConnection(
+ const IndexedDBPendingConnection& other) = default;
+
IndexedDBPendingConnection::~IndexedDBPendingConnection() {}
} // namespace content
diff --git a/content/browser/indexed_db/indexed_db_pending_connection.h b/content/browser/indexed_db/indexed_db_pending_connection.h
index b66d9cd..10e1b05 100644
--- a/content/browser/indexed_db/indexed_db_pending_connection.h
+++ b/content/browser/indexed_db/indexed_db_pending_connection.h
@@ -24,6 +24,7 @@ struct CONTENT_EXPORT IndexedDBPendingConnection {
int child_process_id_in,
int64_t transaction_id_in,
int64_t version_in);
+ IndexedDBPendingConnection(const IndexedDBPendingConnection& other);
~IndexedDBPendingConnection();
scoped_refptr<IndexedDBCallbacks> callbacks;
scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks;
diff --git a/content/browser/media/capture/audio_mirroring_manager.cc b/content/browser/media/capture/audio_mirroring_manager.cc
index a75eb3c..f8b8b3a 100644
--- a/content/browser/media/capture/audio_mirroring_manager.cc
+++ b/content/browser/media/capture/audio_mirroring_manager.cc
@@ -209,6 +209,9 @@ AudioMirroringManager::StreamRoutingState::StreamRoutingState(
diverter(stream_diverter),
destination(NULL) {}
+AudioMirroringManager::StreamRoutingState::StreamRoutingState(
+ const StreamRoutingState& other) = default;
+
AudioMirroringManager::StreamRoutingState::~StreamRoutingState() {}
} // namespace content
diff --git a/content/browser/media/capture/audio_mirroring_manager.h b/content/browser/media/capture/audio_mirroring_manager.h
index 4e44699..a624a08 100644
--- a/content/browser/media/capture/audio_mirroring_manager.h
+++ b/content/browser/media/capture/audio_mirroring_manager.h
@@ -122,6 +122,7 @@ class CONTENT_EXPORT AudioMirroringManager {
StreamRoutingState(const SourceFrameRef& source_frame,
Diverter* stream_diverter);
+ StreamRoutingState(const StreamRoutingState& other);
~StreamRoutingState();
};
diff --git a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc
index 3ddb0a3..6a9264d 100644
--- a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc
+++ b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.cc
@@ -42,6 +42,9 @@ SyntheticSmoothMoveGestureParams::SyntheticSmoothMoveGestureParams()
prevent_fling(true),
add_slop(true) {}
+SyntheticSmoothMoveGestureParams::SyntheticSmoothMoveGestureParams(
+ const SyntheticSmoothMoveGestureParams& other) = default;
+
SyntheticSmoothMoveGestureParams::~SyntheticSmoothMoveGestureParams() {}
SyntheticSmoothMoveGesture::SyntheticSmoothMoveGesture(
diff --git a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h
index 577a8c0..28be20e 100644
--- a/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h
+++ b/content/browser/renderer_host/input/synthetic_smooth_move_gesture.h
@@ -24,6 +24,8 @@ namespace content {
class CONTENT_EXPORT SyntheticSmoothMoveGestureParams {
public:
SyntheticSmoothMoveGestureParams();
+ SyntheticSmoothMoveGestureParams(
+ const SyntheticSmoothMoveGestureParams& other);
~SyntheticSmoothMoveGestureParams();
enum InputType { MOUSE_DRAG_INPUT, MOUSE_WHEEL_INPUT, TOUCH_INPUT };
diff --git a/content/browser/renderer_host/media/audio_output_device_enumerator.cc b/content/browser/renderer_host/media/audio_output_device_enumerator.cc
index cf4842d..24ef8f9 100644
--- a/content/browser/renderer_host/media/audio_output_device_enumerator.cc
+++ b/content/browser/renderer_host/media/audio_output_device_enumerator.cc
@@ -54,6 +54,9 @@ AudioOutputDeviceEnumeration::AudioOutputDeviceEnumeration(
AudioOutputDeviceEnumeration::AudioOutputDeviceEnumeration()
: has_actual_devices(false) {}
+AudioOutputDeviceEnumeration::AudioOutputDeviceEnumeration(
+ const AudioOutputDeviceEnumeration& other) = default;
+
AudioOutputDeviceEnumeration::~AudioOutputDeviceEnumeration() {}
AudioOutputDeviceEnumerator::AudioOutputDeviceEnumerator(
diff --git a/content/browser/renderer_host/media/audio_output_device_enumerator.h b/content/browser/renderer_host/media/audio_output_device_enumerator.h
index bf223a9..afb8204 100644
--- a/content/browser/renderer_host/media/audio_output_device_enumerator.h
+++ b/content/browser/renderer_host/media/audio_output_device_enumerator.h
@@ -50,6 +50,7 @@ struct AudioOutputDeviceEnumeration {
const std::vector<AudioOutputDeviceInfo>& devices,
bool has_actual_devices);
AudioOutputDeviceEnumeration();
+ AudioOutputDeviceEnumeration(const AudioOutputDeviceEnumeration& other);
~AudioOutputDeviceEnumeration();
std::vector<AudioOutputDeviceInfo> devices;
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc
index f7c56f9..4513536 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc
@@ -84,6 +84,9 @@ P2PSocketHostUdp::PendingPacket::PendingPacket(
memcpy(data->data(), &content[0], size);
}
+P2PSocketHostUdp::PendingPacket::PendingPacket(const PendingPacket& other) =
+ default;
+
P2PSocketHostUdp::PendingPacket::~PendingPacket() {
}
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.h b/content/browser/renderer_host/p2p/socket_host_udp.h
index 93fb633..57f1db3 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.h
+++ b/content/browser/renderer_host/p2p/socket_host_udp.h
@@ -58,6 +58,7 @@ class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost {
const std::vector<char>& content,
const rtc::PacketOptions& options,
uint64_t id);
+ PendingPacket(const PendingPacket& other);
~PendingPacket();
net::IPEndPoint to;
scoped_refptr<net::IOBuffer> data;
diff --git a/content/browser/renderer_host/pepper/pepper_file_io_host.cc b/content/browser/renderer_host/pepper/pepper_file_io_host.cc
index faead26..c3e52a6 100644
--- a/content/browser/renderer_host/pepper/pepper_file_io_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.cc
@@ -147,6 +147,9 @@ PepperFileIOHost::UIThreadStuff::UIThreadStuff() {
resolved_render_process_id = base::kNullProcessId;
}
+PepperFileIOHost::UIThreadStuff::UIThreadStuff(const UIThreadStuff& other) =
+ default;
+
PepperFileIOHost::UIThreadStuff::~UIThreadStuff() {}
int32_t PepperFileIOHost::OnHostMsgOpen(
diff --git a/content/browser/renderer_host/pepper/pepper_file_io_host.h b/content/browser/renderer_host/pepper/pepper_file_io_host.h
index 90de1da..6899c2f 100644
--- a/content/browser/renderer_host/pepper/pepper_file_io_host.h
+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.h
@@ -49,6 +49,7 @@ class PepperFileIOHost : public ppapi::host::ResourceHost,
struct UIThreadStuff {
UIThreadStuff();
+ UIThreadStuff(const UIThreadStuff& other);
~UIThreadStuff();
base::ProcessId resolved_render_process_id;
scoped_refptr<storage::FileSystemContext> file_system_context;
diff --git a/content/browser/renderer_host/pepper/pepper_network_proxy_host.cc b/content/browser/renderer_host/pepper/pepper_network_proxy_host.cc
index b80d1c6..58c220e 100644
--- a/content/browser/renderer_host/pepper/pepper_network_proxy_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_network_proxy_host.cc
@@ -58,6 +58,9 @@ PepperNetworkProxyHost::~PepperNetworkProxyHost() {
PepperNetworkProxyHost::UIThreadData::UIThreadData() : is_allowed(false) {}
+PepperNetworkProxyHost::UIThreadData::UIThreadData(const UIThreadData& other) =
+ default;
+
PepperNetworkProxyHost::UIThreadData::~UIThreadData() {}
// static
diff --git a/content/browser/renderer_host/pepper/pepper_network_proxy_host.h b/content/browser/renderer_host/pepper/pepper_network_proxy_host.h
index 0992c9f..309e692d 100644
--- a/content/browser/renderer_host/pepper/pepper_network_proxy_host.h
+++ b/content/browser/renderer_host/pepper/pepper_network_proxy_host.h
@@ -48,6 +48,7 @@ class CONTENT_EXPORT PepperNetworkProxyHost : public ppapi::host::ResourceHost {
// DidGetUIThreadData, which sets allowed_ and proxy_service_.
struct UIThreadData {
UIThreadData();
+ UIThreadData(const UIThreadData& other);
~UIThreadData();
bool is_allowed;
scoped_refptr<net::URLRequestContextGetter> context_getter;
diff --git a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc
index 04d9e98..b73029e 100644
--- a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc
+++ b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.cc
@@ -60,6 +60,9 @@ PepperUDPSocketMessageFilter::PendingSend::PendingSend(
: address(address), port(port), buffer(buffer), context(context) {
}
+PepperUDPSocketMessageFilter::PendingSend::PendingSend(
+ const PendingSend& other) = default;
+
PepperUDPSocketMessageFilter::PendingSend::~PendingSend() {
}
diff --git a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h
index 314599b..7f9612c 100644
--- a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h
+++ b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h
@@ -79,6 +79,7 @@ class CONTENT_EXPORT PepperUDPSocketMessageFilter
int port,
const scoped_refptr<net::IOBufferWithSize>& buffer,
const ppapi::host::ReplyMessageContext& context);
+ PendingSend(const PendingSend& other);
~PendingSend();
net::IPAddressNumber address;
diff --git a/content/browser/service_worker/service_worker_database.cc b/content/browser/service_worker/service_worker_database.cc
index e45dabb..5254e87 100644
--- a/content/browser/service_worker/service_worker_database.cc
+++ b/content/browser/service_worker/service_worker_database.cc
@@ -284,6 +284,9 @@ ServiceWorkerDatabase::RegistrationData::RegistrationData()
resources_total_size_bytes(0) {
}
+ServiceWorkerDatabase::RegistrationData::RegistrationData(
+ const RegistrationData& other) = default;
+
ServiceWorkerDatabase::RegistrationData::~RegistrationData() {
}
diff --git a/content/browser/service_worker/service_worker_database.h b/content/browser/service_worker/service_worker_database.h
index 7d575e8..a32e60a 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -75,6 +75,7 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
int64_t resources_total_size_bytes;
RegistrationData();
+ RegistrationData(const RegistrationData& other);
~RegistrationData();
};
diff --git a/content/browser/service_worker/service_worker_info.cc b/content/browser/service_worker/service_worker_info.cc
index 836e979..422d2ee 100644
--- a/content/browser/service_worker/service_worker_info.cc
+++ b/content/browser/service_worker/service_worker_info.cc
@@ -51,6 +51,9 @@ ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
thread_id(thread_id),
devtools_agent_route_id(devtools_agent_route_id) {}
+ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
+ const ServiceWorkerVersionInfo& other) = default;
+
ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {}
ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo()
@@ -87,6 +90,9 @@ ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
installing_version(installing_version),
stored_version_size_bytes(stored_version_size_bytes) {}
+ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
+ const ServiceWorkerRegistrationInfo& other) = default;
+
ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
} // namespace content
diff --git a/content/browser/service_worker/service_worker_info.h b/content/browser/service_worker/service_worker_info.h
index b1c0a73..135f0a0 100644
--- a/content/browser/service_worker/service_worker_info.h
+++ b/content/browser/service_worker/service_worker_info.h
@@ -37,6 +37,7 @@ struct CONTENT_EXPORT ServiceWorkerVersionInfo {
int process_id,
int thread_id,
int devtools_agent_route_id);
+ ServiceWorkerVersionInfo(const ServiceWorkerVersionInfo& other);
~ServiceWorkerVersionInfo();
ServiceWorkerVersion::RunningStatus running_status;
@@ -69,6 +70,7 @@ struct CONTENT_EXPORT ServiceWorkerRegistrationInfo {
const ServiceWorkerVersionInfo& waiting_version,
const ServiceWorkerVersionInfo& installing_version,
int64_t active_version_total_size_bytes);
+ ServiceWorkerRegistrationInfo(const ServiceWorkerRegistrationInfo& other);
~ServiceWorkerRegistrationInfo();
GURL pattern;
diff --git a/content/browser/service_worker/service_worker_job_coordinator.cc b/content/browser/service_worker/service_worker_job_coordinator.cc
index b8f71cf..9dd023e 100644
--- a/content/browser/service_worker/service_worker_job_coordinator.cc
+++ b/content/browser/service_worker/service_worker_job_coordinator.cc
@@ -23,6 +23,9 @@ bool IsRegisterJob(const ServiceWorkerRegisterJobBase& job) {
ServiceWorkerJobCoordinator::JobQueue::JobQueue() {}
+ServiceWorkerJobCoordinator::JobQueue::JobQueue(const JobQueue& other) =
+ default;
+
ServiceWorkerJobCoordinator::JobQueue::~JobQueue() {
DCHECK(jobs_.empty()) << "Destroying JobQueue with " << jobs_.size()
<< " unfinished jobs";
diff --git a/content/browser/service_worker/service_worker_job_coordinator.h b/content/browser/service_worker/service_worker_job_coordinator.h
index 728b820..5b4c1f1 100644
--- a/content/browser/service_worker/service_worker_job_coordinator.h
+++ b/content/browser/service_worker/service_worker_job_coordinator.h
@@ -56,6 +56,7 @@ class CONTENT_EXPORT ServiceWorkerJobCoordinator {
class JobQueue {
public:
JobQueue();
+ JobQueue(const JobQueue& other);
~JobQueue();
// Adds a job to the queue. If an identical job is already at the end of the
diff --git a/content/browser/service_worker/service_worker_process_manager.cc b/content/browser/service_worker/service_worker_process_manager.cc
index a6a2394..6777fc8 100644
--- a/content/browser/service_worker/service_worker_process_manager.cc
+++ b/content/browser/service_worker/service_worker_process_manager.cc
@@ -40,6 +40,9 @@ ServiceWorkerProcessManager::ProcessInfo::ProcessInfo(int process_id)
: process_id(process_id) {
}
+ServiceWorkerProcessManager::ProcessInfo::ProcessInfo(
+ const ProcessInfo& other) = default;
+
ServiceWorkerProcessManager::ProcessInfo::~ProcessInfo() {
}
diff --git a/content/browser/service_worker/service_worker_process_manager.h b/content/browser/service_worker/service_worker_process_manager.h
index 815f5b3..ad9a730 100644
--- a/content/browser/service_worker/service_worker_process_manager.h
+++ b/content/browser/service_worker/service_worker_process_manager.h
@@ -93,6 +93,7 @@ class CONTENT_EXPORT ServiceWorkerProcessManager {
struct ProcessInfo {
explicit ProcessInfo(const scoped_refptr<SiteInstance>& site_instance);
explicit ProcessInfo(int process_id);
+ ProcessInfo(const ProcessInfo& other);
~ProcessInfo();
// Stores the SiteInstance the Worker lives inside. This needs to outlive
diff --git a/content/browser/service_worker/service_worker_storage.cc b/content/browser/service_worker/service_worker_storage.cc
index 3af7d06..13e39e4 100644
--- a/content/browser/service_worker/service_worker_storage.cc
+++ b/content/browser/service_worker/service_worker_storage.cc
@@ -96,6 +96,9 @@ DidDeleteRegistrationParams::DidDeleteRegistrationParams()
: registration_id(kInvalidServiceWorkerRegistrationId) {
}
+ServiceWorkerStorage::DidDeleteRegistrationParams::DidDeleteRegistrationParams(
+ const DidDeleteRegistrationParams& other) = default;
+
ServiceWorkerStorage::
DidDeleteRegistrationParams::~DidDeleteRegistrationParams() {
}
diff --git a/content/browser/service_worker/service_worker_storage.h b/content/browser/service_worker/service_worker_storage.h
index bf07934..55b2b21 100644
--- a/content/browser/service_worker/service_worker_storage.h
+++ b/content/browser/service_worker/service_worker_storage.h
@@ -274,6 +274,7 @@ class CONTENT_EXPORT ServiceWorkerStorage
StatusCallback callback;
DidDeleteRegistrationParams();
+ DidDeleteRegistrationParams(const DidDeleteRegistrationParams& other);
~DidDeleteRegistrationParams();
};
diff --git a/content/browser/speech/speech_recognizer_impl.cc b/content/browser/speech/speech_recognizer_impl.cc
index 273187d..c993eb9 100644
--- a/content/browser/speech/speech_recognizer_impl.cc
+++ b/content/browser/speech/speech_recognizer_impl.cc
@@ -835,6 +835,9 @@ SpeechRecognizerImpl::FSMEventArgs::FSMEventArgs(FSMEvent event_value)
engine_error(SPEECH_RECOGNITION_ERROR_NONE) {
}
+SpeechRecognizerImpl::FSMEventArgs::FSMEventArgs(const FSMEventArgs& other) =
+ default;
+
SpeechRecognizerImpl::FSMEventArgs::~FSMEventArgs() {
}
diff --git a/content/browser/speech/speech_recognizer_impl.h b/content/browser/speech/speech_recognizer_impl.h
index ff2484b..007142b 100644
--- a/content/browser/speech/speech_recognizer_impl.h
+++ b/content/browser/speech/speech_recognizer_impl.h
@@ -81,6 +81,7 @@ class CONTENT_EXPORT SpeechRecognizerImpl
struct FSMEventArgs {
explicit FSMEventArgs(FSMEvent event_value);
+ FSMEventArgs(const FSMEventArgs& other);
~FSMEventArgs();
FSMEvent event;