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

Side by Side Diff: rlz/lib/rlz_lib.h

Issue 11275284: [cros,rlz] Financial ping livelock fix and proper shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert ps#2 Created 8 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
« no previous file with comments | « rlz/lib/financial_ping.cc ('k') | rlz/lib/rlz_lib.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Set the URLRequestContextGetter used by SendFinancialPing(). The IO message 74 // Set the URLRequestContextGetter used by SendFinancialPing(). The IO message
75 // loop returned by this context will be used for the IO done by 75 // loop returned by this context will be used for the IO done by
76 // SendFinancialPing(). 76 // SendFinancialPing().
77 bool RLZ_LIB_API SetURLRequestContext(net::URLRequestContextGetter* context); 77 bool RLZ_LIB_API SetURLRequestContext(net::URLRequestContextGetter* context);
78 #endif 78 #endif
79 79
80 #if defined(OS_CHROMEOS) 80 #if defined(OS_CHROMEOS)
81 // Set the MessageLoopProxy used by RLZ store to run I/O tasks on. Should be 81 // Set the MessageLoopProxy used by RLZ store to run I/O tasks on. Should be
82 // called before any other API calls. 82 // called before any other API calls.
83 void RLZ_LIB_API SetIOTaskRunner(base::SequencedTaskRunner* io_task_runner); 83 void RLZ_LIB_API SetIOTaskRunner(base::SequencedTaskRunner* io_task_runner);
84
85 // Must be invoked during shutdown to finish any remaining tasks.
86 void RLZ_LIB_API CleanupRlz();
84 #endif 87 #endif
85 88
86 // RLZ storage functions. 89 // RLZ storage functions.
87 90
88 // Get all the events reported by this product as a CGI string to append to 91 // Get all the events reported by this product as a CGI string to append to
89 // the daily ping. 92 // the daily ping.
90 // Access: HKCU read. 93 // Access: HKCU read.
91 bool RLZ_LIB_API GetProductEventsAsCgi(Product product, char* unescaped_cgi, 94 bool RLZ_LIB_API GetProductEventsAsCgi(Product product, char* unescaped_cgi,
92 size_t unescaped_cgi_size); 95 size_t unescaped_cgi_size);
93 96
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 341
339 static const std::string& GetBrand(); 342 static const std::string& GetBrand();
340 343
341 private: 344 private:
342 ScopedRlzValueStoreLock* lock_; 345 ScopedRlzValueStoreLock* lock_;
343 }; 346 };
344 347
345 } // namespace rlz_lib 348 } // namespace rlz_lib
346 349
347 #endif // RLZ_LIB_RLZ_LIB_H_ 350 #endif // RLZ_LIB_RLZ_LIB_H_
OLDNEW
« no previous file with comments | « rlz/lib/financial_ping.cc ('k') | rlz/lib/rlz_lib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698