OLD | NEW |
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 // This namespace provides various helpers and state relating to Google Chrome | 5 // This namespace provides various helpers and state relating to Google Chrome |
6 // distributions (such as RLZ), and specifically relating to the brand of the | 6 // distributions (such as RLZ), and specifically relating to the brand of the |
7 // current install. Brands are codes that are assigned to partners for tracking | 7 // current install. Brands are codes that are assigned to partners for tracking |
8 // distribution information. | 8 // distribution information. |
9 | 9 |
10 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_H__ | 10 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_H__ |
11 #define CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_H__ | 11 #define CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_H__ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 | 16 |
17 class GURL; | |
18 | |
19 namespace google_brand { | 17 namespace google_brand { |
20 | 18 |
21 // Returns in |brand| the brand code or distribution tag that has been | 19 // Returns in |brand| the brand code or distribution tag that has been |
22 // assigned to a partner. Returns false if the information is not available. | 20 // assigned to a partner. Returns false if the information is not available. |
23 bool GetBrand(std::string* brand); | 21 bool GetBrand(std::string* brand); |
24 | 22 |
25 // Returns in |brand| the reactivation brand code or distribution tag | 23 // Returns in |brand| the reactivation brand code or distribution tag |
26 // that has been assigned to a partner for reactivating a dormant chrome | 24 // that has been assigned to a partner for reactivating a dormant chrome |
27 // install. Returns false if the information is not available. | 25 // install. Returns false if the information is not available. |
28 bool GetReactivationBrand(std::string* brand); | 26 bool GetReactivationBrand(std::string* brand); |
(...skipping 18 matching lines...) Expand all Loading... |
47 | 45 |
48 private: | 46 private: |
49 std::string brand_; | 47 std::string brand_; |
50 | 48 |
51 DISALLOW_COPY_AND_ASSIGN(BrandForTesting); | 49 DISALLOW_COPY_AND_ASSIGN(BrandForTesting); |
52 }; | 50 }; |
53 | 51 |
54 } // namespace google_brand | 52 } // namespace google_brand |
55 | 53 |
56 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_H__ | 54 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_BRAND_H__ |
OLD | NEW |