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

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

Issue 10536200: Manage IsolatedContext with reference counts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 // MediaFileSystemRegistry implementation. 5 // MediaFileSystemRegistry implementation.
6 6
7 #include "chrome/browser/media_gallery/media_file_system_registry.h" 7 #include "chrome/browser/media_gallery/media_file_system_registry.h"
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
156 156
157 IsolatedContext* isolated_context = IsolatedContext::GetInstance(); 157 IsolatedContext* isolated_context = IsolatedContext::GetInstance();
158 for (ChildIdToMediaFSMap::iterator child_it = media_fs_map_.begin(); 158 for (ChildIdToMediaFSMap::iterator child_it = media_fs_map_.begin();
159 child_it != media_fs_map_.end(); 159 child_it != media_fs_map_.end();
160 ++child_it) { 160 ++child_it) {
161 MediaPathToFSIDMap& child_map = child_it->second; 161 MediaPathToFSIDMap& child_map = child_it->second;
162 MediaPathToFSIDMap::iterator media_path_it = child_map.find(path); 162 MediaPathToFSIDMap::iterator media_path_it = child_map.find(path);
163 if (media_path_it == child_map.end()) 163 if (media_path_it == child_map.end())
164 continue; 164 continue;
165 isolated_context->RevokeIsolatedFileSystem(media_path_it->second); 165 isolated_context->RemoveReference(media_path_it->second);
166 child_map.erase(media_path_it); 166 child_map.erase(media_path_it);
167 } 167 }
168 } 168 }
169 169
170 } // namespace chrome 170 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | content/browser/child_process_security_policy_impl.cc » ('j') | webkit/fileapi/isolated_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698