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

Side by Side Diff: chrome/browser/extensions/chrome_component_extension_resource_manager.h

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/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 CHROME_BROWSER_EXTENSIONS_CHROME_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_COMPONENT_EXTENSION_RESOURCE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "extensions/browser/component_extension_resource_manager.h" 12 #include "extensions/browser/component_extension_resource_manager.h"
13 13
14 struct GritResourceMap; 14 struct GritResourceMap;
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 class ChromeComponentExtensionResourceManager 18 class ChromeComponentExtensionResourceManager
19 : public ComponentExtensionResourceManager { 19 : public ComponentExtensionResourceManager {
20 public: 20 public:
21 ChromeComponentExtensionResourceManager(); 21 ChromeComponentExtensionResourceManager();
22 virtual ~ChromeComponentExtensionResourceManager(); 22 ~ChromeComponentExtensionResourceManager() override;
23 23
24 // Overridden from ComponentExtensionResourceManager: 24 // Overridden from ComponentExtensionResourceManager:
25 virtual bool IsComponentExtensionResource( 25 bool IsComponentExtensionResource(const base::FilePath& extension_path,
26 const base::FilePath& extension_path, 26 const base::FilePath& resource_path,
27 const base::FilePath& resource_path, 27 int* resource_id) override;
28 int* resource_id) override;
29 28
30 private: 29 private:
31 void AddComponentResourceEntries(const GritResourceMap* entries, size_t size); 30 void AddComponentResourceEntries(const GritResourceMap* entries, size_t size);
32 31
33 // A map from a resource path to the resource ID. Used by 32 // A map from a resource path to the resource ID. Used by
34 // IsComponentExtensionResource. 33 // IsComponentExtensionResource.
35 std::map<base::FilePath, int> path_to_resource_id_; 34 std::map<base::FilePath, int> path_to_resource_id_;
36 35
37 DISALLOW_COPY_AND_ASSIGN(ChromeComponentExtensionResourceManager); 36 DISALLOW_COPY_AND_ASSIGN(ChromeComponentExtensionResourceManager);
38 }; 37 };
39 38
40 } // namespace extensions 39 } // namespace extensions
41 40
42 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_COMPONENT_EXTENSION_RESOURCE_MANAGER _H_ 41 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_COMPONENT_EXTENSION_RESOURCE_MANAGER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698