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

Side by Side Diff: chrome/browser/media_galleries/media_file_system_registry.cc

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/media_galleries/media_file_system_registry.h" 5 #include "chrome/browser/media_galleries/media_file_system_registry.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 : name(fs_name), 268 : name(fs_name),
269 path(fs_path), 269 path(fs_path),
270 fsid(filesystem_id), 270 fsid(filesystem_id),
271 pref_id(pref_id), 271 pref_id(pref_id),
272 transient_device_id(transient_device_id), 272 transient_device_id(transient_device_id),
273 removable(removable), 273 removable(removable),
274 media_device(media_device) { 274 media_device(media_device) {
275 } 275 }
276 276
277 MediaFileSystemInfo::MediaFileSystemInfo() {} 277 MediaFileSystemInfo::MediaFileSystemInfo() {}
278 MediaFileSystemInfo::MediaFileSystemInfo(const MediaFileSystemInfo& other) =
279 default;
278 MediaFileSystemInfo::~MediaFileSystemInfo() {} 280 MediaFileSystemInfo::~MediaFileSystemInfo() {}
279 281
280 // The main owner of this class is 282 // The main owner of this class is
281 // |MediaFileSystemRegistry::extension_hosts_map_|, but a callback may 283 // |MediaFileSystemRegistry::extension_hosts_map_|, but a callback may
282 // temporarily hold a reference. 284 // temporarily hold a reference.
283 class ExtensionGalleriesHost 285 class ExtensionGalleriesHost
284 : public base::RefCountedThreadSafe<ExtensionGalleriesHost> { 286 : public base::RefCountedThreadSafe<ExtensionGalleriesHost> {
285 public: 287 public:
286 // |no_references_callback| is called when the last WebContents reference 288 // |no_references_callback| is called when the last WebContents reference
287 // goes away. WebContents references are added through 289 // goes away. WebContents references are added through
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 DCHECK_CURRENTLY_ON(BrowserThread::UI); 881 DCHECK_CURRENTLY_ON(BrowserThread::UI);
880 882
881 auto extension_hosts_it = extension_hosts_map_.find(profile); 883 auto extension_hosts_it = extension_hosts_map_.find(profile);
882 DCHECK(extension_hosts_it != extension_hosts_map_.end()); 884 DCHECK(extension_hosts_it != extension_hosts_map_.end());
883 extension_hosts_map_.erase(extension_hosts_it); 885 extension_hosts_map_.erase(extension_hosts_it);
884 886
885 auto profile_subscription_it = profile_subscription_map_.find(profile); 887 auto profile_subscription_it = profile_subscription_map_.find(profile);
886 DCHECK(profile_subscription_it != profile_subscription_map_.end()); 888 DCHECK(profile_subscription_it != profile_subscription_map_.end());
887 profile_subscription_map_.erase(profile_subscription_it); 889 profile_subscription_map_.erase(profile_subscription_it);
888 } 890 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698