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

Side by Side Diff: extensions/renderer/resource_bundle_source_map.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_RESOURCE_BUNDLE_SOURCE_MAP_H_ 5 #ifndef EXTENSIONS_RENDERER_RESOURCE_BUNDLE_SOURCE_MAP_H_
6 #define EXTENSIONS_RENDERER_RESOURCE_BUNDLE_SOURCE_MAP_H_ 6 #define EXTENSIONS_RENDERER_RESOURCE_BUNDLE_SOURCE_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "extensions/renderer/module_system.h" 14 #include "extensions/renderer/module_system.h"
15 #include "extensions/renderer/static_v8_external_ascii_string_resource.h" 15 #include "extensions/renderer/static_v8_external_ascii_string_resource.h"
16 #include "v8/include/v8.h" 16 #include "v8/include/v8.h"
17 17
18 namespace ui { 18 namespace ui {
19 class ResourceBundle; 19 class ResourceBundle;
20 } 20 }
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 class ResourceBundleSourceMap : public extensions::ModuleSystem::SourceMap { 24 class ResourceBundleSourceMap : public extensions::ModuleSystem::SourceMap {
25 public: 25 public:
26 explicit ResourceBundleSourceMap(const ui::ResourceBundle* resource_bundle); 26 explicit ResourceBundleSourceMap(const ui::ResourceBundle* resource_bundle);
27 virtual ~ResourceBundleSourceMap(); 27 virtual ~ResourceBundleSourceMap();
28 28
29 virtual v8::Handle<v8::Value> GetSource(v8::Isolate* isolate, 29 virtual v8::Handle<v8::Value> GetSource(v8::Isolate* isolate,
30 const std::string& name) OVERRIDE; 30 const std::string& name) override;
31 virtual bool Contains(const std::string& name) OVERRIDE; 31 virtual bool Contains(const std::string& name) override;
32 32
33 void RegisterSource(const std::string& name, int resource_id); 33 void RegisterSource(const std::string& name, int resource_id);
34 34
35 private: 35 private:
36 v8::Handle<v8::String> ConvertString(v8::Isolate* isolate, 36 v8::Handle<v8::String> ConvertString(v8::Isolate* isolate,
37 const base::StringPiece& string); 37 const base::StringPiece& string);
38 38
39 const ui::ResourceBundle* resource_bundle_; 39 const ui::ResourceBundle* resource_bundle_;
40 std::map<std::string, int> resource_id_map_; 40 std::map<std::string, int> resource_id_map_;
41 }; 41 };
42 42
43 } // namespace extensions 43 } // namespace extensions
44 44
45 #endif // EXTENSIONS_RENDERER_RESOURCE_BUNDLE_SOURCE_MAP_H_ 45 #endif // EXTENSIONS_RENDERER_RESOURCE_BUNDLE_SOURCE_MAP_H_
OLDNEW
« no previous file with comments | « extensions/renderer/render_view_observer_natives.cc ('k') | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698