OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/content_verifier.h" | 5 #include "extensions/browser/content_verifier.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 io_data_, | 188 io_data_, |
189 extension->id(), | 189 extension->id(), |
190 base::Passed(&data))); | 190 base::Passed(&data))); |
191 fetcher_->ExtensionLoaded(extension); | 191 fetcher_->ExtensionLoaded(extension); |
192 } | 192 } |
193 } | 193 } |
194 | 194 |
195 void ContentVerifier::OnExtensionUnloaded( | 195 void ContentVerifier::OnExtensionUnloaded( |
196 content::BrowserContext* browser_context, | 196 content::BrowserContext* browser_context, |
197 const Extension* extension, | 197 const Extension* extension, |
198 UnloadedExtensionInfo::Reason reason) { | 198 UnloadedExtensionReason reason) { |
199 if (shutdown_) | 199 if (shutdown_) |
200 return; | 200 return; |
201 content::BrowserThread::PostTask( | 201 content::BrowserThread::PostTask( |
202 content::BrowserThread::IO, | 202 content::BrowserThread::IO, |
203 FROM_HERE, | 203 FROM_HERE, |
204 base::Bind( | 204 base::Bind( |
205 &ContentVerifierIOData::RemoveData, io_data_, extension->id())); | 205 &ContentVerifierIOData::RemoveData, io_data_, extension->id())); |
206 if (fetcher_) | 206 if (fetcher_) |
207 fetcher_->ExtensionUnloaded(extension); | 207 fetcher_->ExtensionUnloaded(extension); |
208 } | 208 } |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 full_path.DirName().BaseName().MaybeAsASCII())) { | 294 full_path.DirName().BaseName().MaybeAsASCII())) { |
295 continue; | 295 continue; |
296 } | 296 } |
297 } | 297 } |
298 return true; | 298 return true; |
299 } | 299 } |
300 return false; | 300 return false; |
301 } | 301 } |
302 | 302 |
303 } // namespace extensions | 303 } // namespace extensions |
OLD | NEW |