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

Side by Side Diff: chrome/renderer/static_v8_external_string_resource.cc

Issue 9021001: Add an out-of-line destructor to this class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Explicitly make subclass destructor virtual. Created 9 years 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 | « chrome/renderer/static_v8_external_string_resource.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/renderer/static_v8_external_string_resource.h" 5 #include "chrome/renderer/static_v8_external_string_resource.h"
6 6
7 StaticV8ExternalAsciiStringResource::StaticV8ExternalAsciiStringResource( 7 StaticV8ExternalAsciiStringResource::StaticV8ExternalAsciiStringResource(
8 const base::StringPiece& buffer) 8 const base::StringPiece& buffer)
9 : buffer_(buffer) { 9 : buffer_(buffer) {
10 } 10 }
11 11
12 StaticV8ExternalAsciiStringResource::~StaticV8ExternalAsciiStringResource() {
Aaron Boodman 2011/12/21 08:21:32 Lucky!
13 }
14
12 const char* StaticV8ExternalAsciiStringResource::data() const { 15 const char* StaticV8ExternalAsciiStringResource::data() const {
13 return buffer_.data(); 16 return buffer_.data();
14 } 17 }
15 18
16 size_t StaticV8ExternalAsciiStringResource::length() const { 19 size_t StaticV8ExternalAsciiStringResource::length() const {
17 return buffer_.length(); 20 return buffer_.length();
18 } 21 }
OLDNEW
« no previous file with comments | « chrome/renderer/static_v8_external_string_resource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698