OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // A library to manage RLZ information for access-points shared | 5 // A library to manage RLZ information for access-points shared |
6 // across different client applications. | 6 // across different client applications. |
7 // | 7 // |
8 // All functions return true on success and false on error. | 8 // All functions return true on success and false on error. |
9 // This implemenation is thread safe. | 9 // This implemenation is thread safe. |
10 | 10 |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // rlz_lib::RecordProductEvent(rlz_lib::DESKTOP, rlz_lib::GD_DESKBAND, | 314 // rlz_lib::RecordProductEvent(rlz_lib::DESKTOP, rlz_lib::GD_DESKBAND, |
315 // rlz_lib::INSTALL); | 315 // rlz_lib::INSTALL); |
316 // | 316 // |
317 // In particular, this affects the recording of stateful events and the sending | 317 // In particular, this affects the recording of stateful events and the sending |
318 // of financial pings. In the former case, a stateful event recorded while | 318 // of financial pings. In the former case, a stateful event recorded while |
319 // scoped to a supplementary brand will be recorded again when scoped to a | 319 // scoped to a supplementary brand will be recorded again when scoped to a |
320 // different supplementary brand (or not scoped at all). In the latter case, | 320 // different supplementary brand (or not scoped at all). In the latter case, |
321 // the time skip check is specific to each supplementary brand. | 321 // the time skip check is specific to each supplementary brand. |
322 class SupplementaryBranding { | 322 class SupplementaryBranding { |
323 public: | 323 public: |
324 SupplementaryBranding(const char* brand); | 324 explicit SupplementaryBranding(const char* brand); |
325 ~SupplementaryBranding(); | 325 ~SupplementaryBranding(); |
326 | 326 |
327 static const std::string& GetBrand(); | 327 static const std::string& GetBrand(); |
328 | 328 |
329 private: | 329 private: |
330 ScopedRlzValueStoreLock* lock_; | 330 ScopedRlzValueStoreLock* lock_; |
331 }; | 331 }; |
332 | 332 |
333 } // namespace rlz_lib | 333 } // namespace rlz_lib |
334 | 334 |
335 #endif // RLZ_LIB_RLZ_LIB_H_ | 335 #endif // RLZ_LIB_RLZ_LIB_H_ |
OLD | NEW |