| Index: chrome/browser/history/snippet.h
|
| diff --git a/chrome/browser/history/snippet.h b/chrome/browser/history/snippet.h
|
| index ffa8fa19f7b80bea8305dfedd6257305fc7952a6..bbabef028f4344442afa8a7cc6bd65884f65bcf6 100644
|
| --- a/chrome/browser/history/snippet.h
|
| +++ b/chrome/browser/history/snippet.h
|
| @@ -43,6 +43,9 @@ class Snippet {
|
| const std::string& utf8_string,
|
| Snippet::MatchPositions* match_positions);
|
|
|
| + Snippet();
|
| + ~Snippet();
|
| +
|
| // Given |matches|, the match positions within |document|, compute the snippet
|
| // for the document.
|
| // Note that |document| is UTF-8 and the offsets in |matches| are byte
|
| @@ -54,10 +57,7 @@ class Snippet {
|
| const MatchPositions& matches() const { return matches_; }
|
|
|
| // Efficiently swaps the contents of this snippet with the other.
|
| - void Swap(Snippet* other) {
|
| - text_.swap(other->text_);
|
| - matches_.swap(other->matches_);
|
| - }
|
| + void Swap(Snippet* other);
|
|
|
| private:
|
| // The text of the snippet.
|
|
|