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

Side by Side Diff: extensions/renderer/static_v8_external_ascii_string_resource.h

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef EXTENSIONS_RENDERER_STATIC_V8_EXTERNAL_ASCII_STRING_RESOURCE_H_ 5 #ifndef EXTENSIONS_RENDERER_STATIC_V8_EXTERNAL_ASCII_STRING_RESOURCE_H_
6 #define EXTENSIONS_RENDERER_STATIC_V8_EXTERNAL_ASCII_STRING_RESOURCE_H_ 6 #define EXTENSIONS_RENDERER_STATIC_V8_EXTERNAL_ASCII_STRING_RESOURCE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "v8/include/v8.h" 10 #include "v8/include/v8.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // A very simple implementation of v8::ExternalAsciiStringResource that just 14 // A very simple implementation of v8::ExternalAsciiStringResource that just
15 // wraps a buffer. The buffer must outlive the v8 runtime instance this resource 15 // wraps a buffer. The buffer must outlive the v8 runtime instance this resource
16 // is used in. 16 // is used in.
17 class StaticV8ExternalAsciiStringResource 17 class StaticV8ExternalAsciiStringResource
18 : public v8::String::ExternalAsciiStringResource { 18 : public v8::String::ExternalAsciiStringResource {
19 public: 19 public:
20 explicit StaticV8ExternalAsciiStringResource(const base::StringPiece& buffer); 20 explicit StaticV8ExternalAsciiStringResource(const base::StringPiece& buffer);
21 virtual ~StaticV8ExternalAsciiStringResource(); 21 virtual ~StaticV8ExternalAsciiStringResource();
22 22
23 virtual const char* data() const OVERRIDE; 23 virtual const char* data() const override;
24 virtual size_t length() const OVERRIDE; 24 virtual size_t length() const override;
25 25
26 private: 26 private:
27 base::StringPiece buffer_; 27 base::StringPiece buffer_;
28 }; 28 };
29 29
30 } // namespace extensions 30 } // namespace extensions
31 31
32 #endif // EXTENSIONS_RENDERER_STATIC_V8_EXTERNAL_ASCII_STRING_RESOURCE_H_ 32 #endif // EXTENSIONS_RENDERER_STATIC_V8_EXTERNAL_ASCII_STRING_RESOURCE_H_
OLDNEW
« no previous file with comments | « extensions/renderer/script_injection_manager.cc ('k') | extensions/renderer/test_extensions_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698