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

Side by Side Diff: chrome/browser/component_updater/update_checker.h

Issue 334783002: Componentize component_updater: Move some paths/constants to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 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 CHROME_BROWSER_COMPONENT_UPDATER_UPDATE_CHECKER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_UPDATE_CHECKER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_UPDATE_CHECKER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_UPDATE_CHECKER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 const std::string& error_message, 29 const std::string& error_message,
30 const UpdateResponse::Results& results)> 30 const UpdateResponse::Results& results)>
31 UpdateCheckCallback; 31 UpdateCheckCallback;
32 32
33 virtual ~UpdateChecker() {} 33 virtual ~UpdateChecker() {}
34 34
35 // Initiates an update check for the |items_to_check|. |additional_attributes| 35 // Initiates an update check for the |items_to_check|. |additional_attributes|
36 // provides a way to customize the <request> element. This value is inserted 36 // provides a way to customize the <request> element. This value is inserted
37 // as-is, therefore it must be well-formed as an XML attribute string. 37 // as-is, therefore it must be well-formed as an XML attribute string.
38 virtual bool CheckForUpdates( 38 virtual bool CheckForUpdates(
39 const std::string& chrome_version,
40 const std::string& platform_name,
39 const std::vector<CrxUpdateItem*>& items_to_check, 41 const std::vector<CrxUpdateItem*>& items_to_check,
40 const std::string& additional_attributes) = 0; 42 const std::string& additional_attributes) = 0;
41 43
42 static scoped_ptr<UpdateChecker> Create( 44 static scoped_ptr<UpdateChecker> Create(
43 const GURL& url, 45 const GURL& url,
44 net::URLRequestContextGetter* url_request_context_getter, 46 net::URLRequestContextGetter* url_request_context_getter,
45 const UpdateCheckCallback& update_check_callback); 47 const UpdateCheckCallback& update_check_callback);
46 48
47 protected: 49 protected:
48 UpdateChecker() {} 50 UpdateChecker() {}
49 51
50 private: 52 private:
51 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); 53 DISALLOW_COPY_AND_ASSIGN(UpdateChecker);
52 }; 54 };
53 55
54 } // namespace component_updater 56 } // namespace component_updater
55 57
56 #endif // CHROME_BROWSER_COMPONENT_UPDATER_UPDATE_CHECKER_H_ 58 #endif // CHROME_BROWSER_COMPONENT_UPDATER_UPDATE_CHECKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698