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

Side by Side Diff: components/component_updater/component_updater_ping_manager.cc

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extensions from component_updater.gypi dependencies, due to introducing cycle Created 6 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/component_updater/component_updater_ping_manager.h" 5 #include "components/component_updater/component_updater_ping_manager.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "chrome/browser/component_updater/component_updater_configurator.h" 16 #include "components/component_updater/component_updater_configurator.h"
17 #include "chrome/browser/component_updater/component_updater_utils.h" 17 #include "components/component_updater/component_updater_utils.h"
18 #include "chrome/browser/component_updater/crx_update_item.h" 18 #include "components/component_updater/crx_update_item.h"
19 #include "net/url_request/url_fetcher.h" 19 #include "net/url_request/url_fetcher.h"
20 #include "net/url_request/url_fetcher_delegate.h" 20 #include "net/url_request/url_fetcher_delegate.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 namespace component_updater { 23 namespace component_updater {
24 24
25 // Returns a string literal corresponding to the value of the downloader |d|. 25 // Returns a string literal corresponding to the value of the downloader |d|.
26 const char* DownloaderToString(CrxDownloader::DownloadMetrics::Downloader d) { 26 const char* DownloaderToString(CrxDownloader::DownloadMetrics::Downloader d) {
27 switch (d) { 27 switch (d) {
28 case CrxDownloader::DownloadMetrics::kUrlFetcher: 28 case CrxDownloader::DownloadMetrics::kUrlFetcher:
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 196 }
197 197
198 // Sends a fire and forget ping when the updates are complete. The ping 198 // Sends a fire and forget ping when the updates are complete. The ping
199 // sender object self-deletes after sending the ping. 199 // sender object self-deletes after sending the ping.
200 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) { 200 void PingManager::OnUpdateComplete(const CrxUpdateItem* item) {
201 PingSender* ping_sender(new PingSender); 201 PingSender* ping_sender(new PingSender);
202 ping_sender->SendPing(config_, config_.RequestContext(), item); 202 ping_sender->SendPing(config_, config_.RequestContext(), item);
203 } 203 }
204 204
205 } // namespace component_updater 205 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698