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

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

Issue 424053002: Add a new "Configure" mechanism to CLD browser-side data interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Leaky lazy last file path 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 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_CLD_COMPONENT_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual std::string GetName() const OVERRIDE; 53 virtual std::string GetName() const OVERRIDE;
54 54
55 static base::FilePath GetInstalledPath(const base::FilePath& base); 55 static base::FilePath GetInstalledPath(const base::FilePath& base);
56 56
57 // Sets the path to the CLD data file. Called internally once a valid CLD 57 // Sets the path to the CLD data file. Called internally once a valid CLD
58 // data file has been observed. The implementation of this method is 58 // data file has been observed. The implementation of this method is
59 // responsible for configuring the CLD data source. 59 // responsible for configuring the CLD data source.
60 // This method is threadsafe. 60 // This method is threadsafe.
61 static void SetLatestCldDataFile(const base::FilePath& path); 61 static void SetLatestCldDataFile(const base::FilePath& path);
62 62
63 // Allows testing code to detect the file path that was ultimately set in
Sorin Jianu 2014/07/29 17:56:56 Can this code be for production, in other words, w
Andrew Hayden (chromium.org) 2014/07/29 19:51:55 There is no issue, but there is also no need. It's
64 // SetLatestCldDataFile.
65 static base::FilePath GetLatestCldDataFile_ForTest();
66
63 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits); 67 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits);
64 }; 68 };
65 69
66 // Call once during startup to make the component update service aware of 70 // Call once during startup to make the component update service aware of
67 // the CLD component. 71 // the CLD component.
68 void RegisterCldComponent(ComponentUpdateService* cus); 72 void RegisterCldComponent(ComponentUpdateService* cus);
69 73
70 } // namespace component_updater 74 } // namespace component_updater
71 75
72 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ 76 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/component_updater/cld_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698