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

Side by Side Diff: extensions/browser/content_verifier.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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 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
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
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
OLDNEW
« no previous file with comments | « extensions/browser/content_verifier.h ('k') | extensions/browser/declarative_user_script_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698