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

Unified Diff: chrome/browser/history/in_memory_url_index_types.cc

Issue 9030031: Move InMemoryURLIndex Caching Operations to FILE Thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Use proper refcounted structures for passing around status. Created 8 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/in_memory_url_index_types.cc
===================================================================
--- chrome/browser/history/in_memory_url_index_types.cc (revision 125078)
+++ chrome/browser/history/in_memory_url_index_types.cc (working copy)
@@ -147,4 +147,16 @@
return prefixes.count(prefix) != 0;
}
+// RefCountedBool --------------------------------------------------------------
+
+const unsigned char* RefCountedBool::front() const {
+ return reinterpret_cast<const unsigned char*>(&bool_);
+}
+
+size_t RefCountedBool::size() const {
+ return sizeof(bool);
mrossetti 2012/03/06 03:49:30 I will change this 'bool' to the var 'bool_' befor
+}
+
+RefCountedBool::~RefCountedBool() {}
+
} // namespace history

Powered by Google App Engine
This is Rietveld 408576698