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

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

Issue 464613002: Move SafeManifestParser to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge and update gn Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/updater/safe_manifest_parser.h » ('j') | 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"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/metrics/sparse_histogram.h" 15 #include "base/metrics/sparse_histogram.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "base/version.h" 21 #include "base/version.h"
22 #include "chrome/browser/chrome_notification_types.h" 22 #include "chrome/browser/chrome_notification_types.h"
23 #include "chrome/browser/extensions/updater/extension_cache.h" 23 #include "chrome/browser/extensions/updater/extension_cache.h"
24 #include "chrome/browser/extensions/updater/request_queue_impl.h" 24 #include "chrome/browser/extensions/updater/request_queue_impl.h"
25 #include "chrome/browser/extensions/updater/safe_manifest_parser.h"
26 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
27 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
28 #include "chrome/common/chrome_version_info.h" 26 #include "chrome/common/chrome_version_info.h"
29 #include "chrome/common/extensions/manifest_url_handler.h" 27 #include "chrome/common/extensions/manifest_url_handler.h"
30 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
31 #include "content/public/browser/notification_details.h" 29 #include "content/public/browser/notification_details.h"
32 #include "content/public/browser/notification_service.h" 30 #include "content/public/browser/notification_service.h"
31 #include "extensions/browser/updater/safe_manifest_parser.h"
33 #include "extensions/common/extension_urls.h" 32 #include "extensions/common/extension_urls.h"
34 #include "google_apis/gaia/identity_provider.h" 33 #include "google_apis/gaia/identity_provider.h"
35 #include "net/base/backoff_entry.h" 34 #include "net/base/backoff_entry.h"
36 #include "net/base/load_flags.h" 35 #include "net/base/load_flags.h"
37 #include "net/base/net_errors.h" 36 #include "net/base/net_errors.h"
38 #include "net/http/http_request_headers.h" 37 #include "net/http/http_request_headers.h"
39 #include "net/http/http_status_code.h" 38 #include "net/http/http_status_code.h"
40 #include "net/url_request/url_fetcher.h" 39 #include "net/url_request/url_fetcher.h"
41 #include "net/url_request/url_request_context_getter.h" 40 #include "net/url_request/url_request_context_getter.h"
42 #include "net/url_request/url_request_status.h" 41 #include "net/url_request/url_request_status.h"
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 ping_mode = ManifestFetchData::PING_WITH_METRICS; 956 ping_mode = ManifestFetchData::PING_WITH_METRICS;
958 } else { 957 } else {
959 ping_mode = ManifestFetchData::PING; 958 ping_mode = ManifestFetchData::PING;
960 } 959 }
961 } 960 }
962 return new ManifestFetchData( 961 return new ManifestFetchData(
963 update_url, request_id, brand_code_, manifest_query_params_, ping_mode); 962 update_url, request_id, brand_code_, manifest_query_params_, ping_mode);
964 } 963 }
965 964
966 } // namespace extensions 965 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/updater/safe_manifest_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698