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

Side by Side Diff: chrome/browser/extensions/updater/extension_downloader.cc

Issue 79363004: Merge 235370 "Destroy ExternalCacheDispatcher when last External..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/extensions/updater/extension_downloader.h" 5 #include "chrome/browser/extensions/updater/extension_downloader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 16 matching lines...) Expand all
27 #include "chrome/common/chrome_version_info.h" 27 #include "chrome/common/chrome_version_info.h"
28 #include "chrome/common/extensions/extension_constants.h" 28 #include "chrome/common/extensions/extension_constants.h"
29 #include "chrome/common/extensions/manifest_url_handler.h" 29 #include "chrome/common/extensions/manifest_url_handler.h"
30 #include "content/public/browser/browser_thread.h" 30 #include "content/public/browser/browser_thread.h"
31 #include "content/public/browser/notification_details.h" 31 #include "content/public/browser/notification_details.h"
32 #include "content/public/browser/notification_service.h" 32 #include "content/public/browser/notification_service.h"
33 #include "net/base/backoff_entry.h" 33 #include "net/base/backoff_entry.h"
34 #include "net/base/load_flags.h" 34 #include "net/base/load_flags.h"
35 #include "net/base/net_errors.h" 35 #include "net/base/net_errors.h"
36 #include "net/url_request/url_fetcher.h" 36 #include "net/url_request/url_fetcher.h"
37 #include "net/url_request/url_request_context_getter.h"
37 #include "net/url_request/url_request_status.h" 38 #include "net/url_request/url_request_status.h"
38 39
39 using base::Time; 40 using base::Time;
40 using base::TimeDelta; 41 using base::TimeDelta;
41 using content::BrowserThread; 42 using content::BrowserThread;
42 43
43 namespace extensions { 44 namespace extensions {
44 45
45 const char ExtensionDownloader::kBlacklistAppID[] = "com.google.crx.blacklist"; 46 const char ExtensionDownloader::kBlacklistAppID[] = "com.google.crx.blacklist";
46 47
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, 706 void ExtensionDownloader::NotifyUpdateFound(const std::string& id,
706 const std::string& version) { 707 const std::string& version) {
707 UpdateDetails updateInfo(id, Version(version)); 708 UpdateDetails updateInfo(id, Version(version));
708 content::NotificationService::current()->Notify( 709 content::NotificationService::current()->Notify(
709 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, 710 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND,
710 content::NotificationService::AllBrowserContextsAndSources(), 711 content::NotificationService::AllBrowserContextsAndSources(),
711 content::Details<UpdateDetails>(&updateInfo)); 712 content::Details<UpdateDetails>(&updateInfo));
712 } 713 }
713 714
714 } // namespace extensions 715 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_downloader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698