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

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

Issue 479513004: Prevent extension sideloading from Windows registry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 static const char kExternalCrx[]; 67 static const char kExternalCrx[];
68 static const char kExternalVersion[]; 68 static const char kExternalVersion[];
69 static const char kExternalUpdateUrl[]; 69 static const char kExternalUpdateUrl[];
70 static const char kInstallParam[]; 70 static const char kInstallParam[];
71 static const char kIsBookmarkApp[]; 71 static const char kIsBookmarkApp[];
72 static const char kIsFromWebstore[]; 72 static const char kIsFromWebstore[];
73 static const char kKeepIfPresent[]; 73 static const char kKeepIfPresent[];
74 static const char kSupportedLocales[]; 74 static const char kSupportedLocales[];
75 static const char kWasInstalledByOem[]; 75 static const char kWasInstalledByOem[];
76 static const char kMayBeUntrusted[];
76 77
77 void set_auto_acknowledge(bool auto_acknowledge) { 78 void set_auto_acknowledge(bool auto_acknowledge) {
78 auto_acknowledge_ = auto_acknowledge; 79 auto_acknowledge_ = auto_acknowledge;
79 } 80 }
80 81
81 private: 82 private:
82 // Location for external extensions that are provided by this provider from 83 // Location for external extensions that are provided by this provider from
83 // local crx files. 84 // local crx files.
84 const Manifest::Location crx_location_; 85 const Manifest::Location crx_location_;
85 86
(...skipping 26 matching lines...) Expand all
112 // Whether loaded extensions should be automatically acknowledged, so that 113 // Whether loaded extensions should be automatically acknowledged, so that
113 // the user doesn't see an alert about them. 114 // the user doesn't see an alert about them.
114 bool auto_acknowledge_; 115 bool auto_acknowledge_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); 117 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl);
117 }; 118 };
118 119
119 } // namespace extensions 120 } // namespace extensions
120 121
121 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 122 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698