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

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

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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 #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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "components/update_client/update_client.h" 14 #include "components/update_client/update_client.h"
15 #include "components/update_client/updater_state.h" 15 #include "components/update_client/updater_state.h"
16 16
17 class GURL; 17 class GURL;
18 18
19 namespace base { 19 namespace base {
20 class DictionaryValue;
21 class FilePath; 20 class FilePath;
22 } 21 }
23 22
24 namespace net { 23 namespace net {
25 class URLFetcher; 24 class URLFetcher;
26 class URLFetcherDelegate; 25 class URLFetcherDelegate;
27 class URLRequestContextGetter; 26 class URLRequestContextGetter;
28 } 27 }
29 28
30 namespace update_client { 29 namespace update_client {
31 30
32 class Configurator;
33 struct CrxComponent; 31 struct CrxComponent;
34 struct CrxUpdateItem; 32 struct CrxUpdateItem;
35 33
36 // Defines a name-value pair that represents an installer attribute. 34 // Defines a name-value pair that represents an installer attribute.
37 // Installer attributes are component-specific metadata, which may be serialized 35 // Installer attributes are component-specific metadata, which may be serialized
38 // in an update check request. 36 // in an update check request.
39 using InstallerAttribute = std::pair<std::string, std::string>; 37 using InstallerAttribute = std::pair<std::string, std::string>;
40 38
41 // An update protocol request starts with a common preamble which includes 39 // An update protocol request starts with a common preamble which includes
42 // version and platform information for Chrome and the operating system, 40 // version and platform information for Chrome and the operating system,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Removes the unsecure urls in the |urls| parameter. 120 // Removes the unsecure urls in the |urls| parameter.
123 void RemoveUnsecureUrls(std::vector<GURL>* urls); 121 void RemoveUnsecureUrls(std::vector<GURL>* urls);
124 122
125 // Adapter function for the old definitions of CrxInstaller::Install until the 123 // Adapter function for the old definitions of CrxInstaller::Install until the
126 // component installer code is migrated to use a REsult instead of bool. 124 // component installer code is migrated to use a REsult instead of bool.
127 CrxInstaller::Result InstallFunctionWrapper(base::Callback<bool()> callback); 125 CrxInstaller::Result InstallFunctionWrapper(base::Callback<bool()> callback);
128 126
129 } // namespace update_client 127 } // namespace update_client
130 128
131 #endif // COMPONENTS_UPDATE_CLIENT_UTILS_H_ 129 #endif // COMPONENTS_UPDATE_CLIENT_UTILS_H_
OLDNEW
« no previous file with comments | « components/update_client/url_request_post_interceptor.h ('k') | components/url_matcher/url_matcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698