| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 275 |
| 276 // Makes the OEM Deal Confirmation code writable by all users on the machine. | 276 // Makes the OEM Deal Confirmation code writable by all users on the machine. |
| 277 // This should be called before calling SetMachineDealCode from a non-admin | 277 // This should be called before calling SetMachineDealCode from a non-admin |
| 278 // account. | 278 // account. |
| 279 // Access: HKLM write. | 279 // Access: HKLM write. |
| 280 bool RLZ_LIB_API CreateMachineState(void); | 280 bool RLZ_LIB_API CreateMachineState(void); |
| 281 | 281 |
| 282 // Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ | 282 // Set the OEM Deal Confirmation Code (DCC). This information is used for RLZ |
| 283 // initalization. | 283 // initalization. |
| 284 // Access: HKLM write, or | 284 // Access: HKLM write, or |
| 285 // HKCU read if rlz_lib::CreateMachineState() has been sucessfully called. | 285 // HKCU read if rlz_lib::CreateMachineState() has been successfully called. |
| 286 bool RLZ_LIB_API SetMachineDealCode(const char* dcc); | 286 bool RLZ_LIB_API SetMachineDealCode(const char* dcc); |
| 287 | 287 |
| 288 // Get the DCC cgi argument string to append to a daily ping. | 288 // Get the DCC cgi argument string to append to a daily ping. |
| 289 // Should be used only by OEM deal trackers. Applications should use the | 289 // Should be used only by OEM deal trackers. Applications should use the |
| 290 // GetMachineDealCode method which has an AccessPoint paramter. | 290 // GetMachineDealCode method which has an AccessPoint paramter. |
| 291 // Access: HKLM read. | 291 // Access: HKLM read. |
| 292 bool RLZ_LIB_API GetMachineDealCodeAsCgi(char* cgi, size_t cgi_size); | 292 bool RLZ_LIB_API GetMachineDealCodeAsCgi(char* cgi, size_t cgi_size); |
| 293 | 293 |
| 294 // Get the DCC value stored in registry. | 294 // Get the DCC value stored in registry. |
| 295 // Should be used only by OEM deal trackers. Applications should use the | 295 // Should be used only by OEM deal trackers. Applications should use the |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 // rlz_lib::RecordProductEvent(rlz_lib::DESKTOP, rlz_lib::GD_DESKBAND, | 330 // rlz_lib::RecordProductEvent(rlz_lib::DESKTOP, rlz_lib::GD_DESKBAND, |
| 331 // rlz_lib::INSTALL); | 331 // rlz_lib::INSTALL); |
| 332 // | 332 // |
| 333 // In particular, this affects the recording of stateful events and the sending | 333 // In particular, this affects the recording of stateful events and the sending |
| 334 // of financial pings. In the former case, a stateful event recorded while | 334 // of financial pings. In the former case, a stateful event recorded while |
| 335 // scoped to a supplementary brand will be recorded again when scoped to a | 335 // scoped to a supplementary brand will be recorded again when scoped to a |
| 336 // different supplementary brand (or not scoped at all). In the latter case, | 336 // different supplementary brand (or not scoped at all). In the latter case, |
| 337 // the time skip check is specific to each supplementary brand. | 337 // the time skip check is specific to each supplementary brand. |
| 338 class SupplementaryBranding { | 338 class SupplementaryBranding { |
| 339 public: | 339 public: |
| 340 SupplementaryBranding(const char* brand); | 340 explicit SupplementaryBranding(const char* brand); |
| 341 ~SupplementaryBranding(); | 341 ~SupplementaryBranding(); |
| 342 | 342 |
| 343 static const std::string& GetBrand(); | 343 static const std::string& GetBrand(); |
| 344 | 344 |
| 345 private: | 345 private: |
| 346 ScopedRlzValueStoreLock* lock_; | 346 ScopedRlzValueStoreLock* lock_; |
| 347 }; | 347 }; |
| 348 | 348 |
| 349 } // namespace rlz_lib | 349 } // namespace rlz_lib |
| 350 | 350 |
| 351 #endif // RLZ_LIB_RLZ_LIB_H_ | 351 #endif // RLZ_LIB_RLZ_LIB_H_ |
| OLD | NEW |