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

Side by Side Diff: chrome/common/extensions/chrome_manifest_url_handlers.h

Issue 1977303004: [Extensions] Validate file existence for chrome url overrides (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/chrome_manifest_url_handlers.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_
6 #define CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_ 6 #define CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 DISALLOW_COPY_AND_ASSIGN(DevToolsPageHandler); 52 DISALLOW_COPY_AND_ASSIGN(DevToolsPageHandler);
53 }; 53 };
54 54
55 // Parses the "chrome_url_overrides" manifest key. 55 // Parses the "chrome_url_overrides" manifest key.
56 class URLOverridesHandler : public ManifestHandler { 56 class URLOverridesHandler : public ManifestHandler {
57 public: 57 public:
58 URLOverridesHandler(); 58 URLOverridesHandler();
59 ~URLOverridesHandler() override; 59 ~URLOverridesHandler() override;
60 60
61 bool Parse(Extension* extension, base::string16* error) override; 61 bool Parse(Extension* extension, base::string16* error) override;
62 bool Validate(const Extension* extension,
63 std::string* error,
64 std::vector<InstallWarning>* warnings) const override;
62 65
63 private: 66 private:
64 const std::vector<std::string> Keys() const override; 67 const std::vector<std::string> Keys() const override;
65 68
66 DISALLOW_COPY_AND_ASSIGN(URLOverridesHandler); 69 DISALLOW_COPY_AND_ASSIGN(URLOverridesHandler);
67 }; 70 };
68 71
69 } // namespace extensions 72 } // namespace extensions
70 73
71 #endif // CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_ 74 #endif // CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/extensions/chrome_manifest_url_handlers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698