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

Side by Side Diff: chrome/browser/translate/component_cld_data_harness.h

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make some of the harness factory methods private Created 6 years, 1 month 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_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_ 5 #ifndef CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_
6 #define CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_ 6 #define CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/translate/cld_data_harness.h" 9 #include "chrome/browser/translate/cld_data_harness.h"
10 10
11 namespace test { 11 namespace test {
12 12
13 // Utility class that sets up a test harness suitable for injecting a
14 // component-updater-based CLD data file into the runtime. See CldDataHarness
15 // class for more details.
13 class ComponentCldDataHarness : public CldDataHarness { 16 class ComponentCldDataHarness : public CldDataHarness {
14 public: 17 public:
15 ComponentCldDataHarness(); 18 ComponentCldDataHarness() {}
16 virtual ~ComponentCldDataHarness(); 19 ~ComponentCldDataHarness() override;
17 virtual void Init() override; 20 void Init() override;
18 21
19 private: 22 private:
20 void ClearComponentDataFileState(); 23 void ClearComponentDataFileState();
21 void GetExtractedComponentDestination(base::FilePath*); 24 void GetExtractedComponentDestination(base::FilePath*);
22 void GetComponentDataFileDestination(base::FilePath*); 25 void GetComponentDataFileDestination(base::FilePath*);
23 void DeleteComponentTree(); 26 void DeleteComponentTree();
24 void CopyComponentTree(); 27 void CopyComponentTree();
25 28
26 DISALLOW_COPY_AND_ASSIGN(ComponentCldDataHarness); 29 DISALLOW_COPY_AND_ASSIGN(ComponentCldDataHarness);
27 }; 30 };
28 31
29 } // namespace test 32 } // namespace test
30 33
31 #endif // CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_ 34 #endif // CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/translate/cld_data_harness_factory.cc ('k') | chrome/browser/translate/component_cld_data_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698