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

Side by Side Diff: components/update_client/utils.h

Issue 1606943007: Implement Windows GPO support for "dlpref" in component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace comments only Created 4 years, 10 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
« no previous file with comments | « components/update_client/update_checker_unittest.cc ('k') | components/update_client/utils.cc » ('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 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 #ifndef COMPONENTS_UPDATE_CLIENT_UTILS_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_UTILS_H_
6 #define COMPONENTS_UPDATE_CLIENT_UTILS_H_ 6 #define COMPONENTS_UPDATE_CLIENT_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 26 matching lines...) Expand all
37 // requestid="{7383396D-B4DD-46E1-9104-AAC6B918E792}" 37 // requestid="{7383396D-B4DD-46E1-9104-AAC6B918E792}"
38 // updaterchannel="canary" arch="x86" nacl_arch="x86-64" 38 // updaterchannel="canary" arch="x86" nacl_arch="x86-64"
39 // ADDITIONAL ATTRIBUTES> 39 // ADDITIONAL ATTRIBUTES>
40 // <hw physmemory="16"/> 40 // <hw physmemory="16"/>
41 // <os platform="win" version="6.1" arch="x86"/> 41 // <os platform="win" version="6.1" arch="x86"/>
42 // ... REQUEST BODY ... 42 // ... REQUEST BODY ...
43 // </request> 43 // </request>
44 44
45 // Builds a protocol request string by creating the outer envelope for 45 // Builds a protocol request string by creating the outer envelope for
46 // the request and including the request body specified as a parameter. 46 // the request and including the request body specified as a parameter.
47 // If present, the |download_preference| specifies a group policy that
48 // affects the list of download URLs returned in the update response.
47 // If specified, |additional_attributes| are appended as attributes of the 49 // If specified, |additional_attributes| are appended as attributes of the
48 // request element. The additional attributes have to be well-formed for 50 // request element. The additional attributes have to be well-formed for
49 // insertion in the request element. 51 // insertion in the request element.
50 std::string BuildProtocolRequest(const std::string& browser_version, 52 std::string BuildProtocolRequest(const std::string& browser_version,
51 const std::string& channel, 53 const std::string& channel,
52 const std::string& lang, 54 const std::string& lang,
53 const std::string& os_long_name, 55 const std::string& os_long_name,
56 const std::string& download_preference,
54 const std::string& request_body, 57 const std::string& request_body,
55 const std::string& additional_attributes); 58 const std::string& additional_attributes);
56 59
57 // Sends a protocol request to the the service endpoint specified by |url|. 60 // Sends a protocol request to the the service endpoint specified by |url|.
58 // The body of the request is provided by |protocol_request| and it is 61 // The body of the request is provided by |protocol_request| and it is
59 // expected to contain XML data. The caller owns the returned object. 62 // expected to contain XML data. The caller owns the returned object.
60 scoped_ptr<net::URLFetcher> SendProtocolRequest( 63 scoped_ptr<net::URLFetcher> SendProtocolRequest(
61 const GURL& url, 64 const GURL& url,
62 const std::string& protocol_request, 65 const std::string& protocol_request,
63 net::URLFetcherDelegate* url_fetcher_delegate, 66 net::URLFetcherDelegate* url_fetcher_delegate,
(...skipping 19 matching lines...) Expand all
83 // Returns true if the file and the empty directory are deleted. 86 // Returns true if the file and the empty directory are deleted.
84 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath); 87 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath);
85 88
86 // Returns the component id of the |component|. The component id is in a 89 // Returns the component id of the |component|. The component id is in a
87 // format similar with the format of an extension id. 90 // format similar with the format of an extension id.
88 std::string GetCrxComponentID(const CrxComponent& component); 91 std::string GetCrxComponentID(const CrxComponent& component);
89 92
90 } // namespace update_client 93 } // namespace update_client
91 94
92 #endif // COMPONENTS_UPDATE_CLIENT_UTILS_H_ 95 #endif // COMPONENTS_UPDATE_CLIENT_UTILS_H_
OLDNEW
« no previous file with comments | « components/update_client/update_checker_unittest.cc ('k') | components/update_client/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698