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

Unified Diff: base/memory/ref_counted_memory.h

Issue 11830007: Avoid sending notifications when the bitmap data in history has not changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | base/memory/ref_counted_memory.cc » ('j') | base/memory/ref_counted_memory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/ref_counted_memory.h
diff --git a/base/memory/ref_counted_memory.h b/base/memory/ref_counted_memory.h
index 9edcd6fdc94d7f358596dcc2a39153a38d7e0b0f..b86de578dd036a4eea2092f38135a2076e390d07 100644
--- a/base/memory/ref_counted_memory.h
+++ b/base/memory/ref_counted_memory.h
@@ -27,6 +27,9 @@ class BASE_EXPORT RefCountedMemory
// Size of the memory pointed to.
virtual size_t size() const = 0;
+ // Returns true if |other| is byte for byte equal.
+ bool Equals(const RefCountedMemory* other) const;
+
protected:
friend class base::RefCountedThreadSafe<RefCountedMemory>;
RefCountedMemory();
« no previous file with comments | « no previous file | base/memory/ref_counted_memory.cc » ('j') | base/memory/ref_counted_memory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698