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

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

Issue 974713002: kiosk: Ensure launching latest version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest compile Created 5 years, 9 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 (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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static const char kIsFromWebstore[]; 71 static const char kIsFromWebstore[];
72 static const char kKeepIfPresent[]; 72 static const char kKeepIfPresent[];
73 static const char kSupportedLocales[]; 73 static const char kSupportedLocales[];
74 static const char kWasInstalledByOem[]; 74 static const char kWasInstalledByOem[];
75 static const char kMayBeUntrusted[]; 75 static const char kMayBeUntrusted[];
76 76
77 void set_auto_acknowledge(bool auto_acknowledge) { 77 void set_auto_acknowledge(bool auto_acknowledge) {
78 auto_acknowledge_ = auto_acknowledge; 78 auto_acknowledge_ = auto_acknowledge;
79 } 79 }
80 80
81 void set_install_immediately(bool install_immediately) {
82 install_immediately_ = install_immediately;
83 }
84
81 private: 85 private:
82 // Location for external extensions that are provided by this provider from 86 // Location for external extensions that are provided by this provider from
83 // local crx files. 87 // local crx files.
84 const Manifest::Location crx_location_; 88 const Manifest::Location crx_location_;
85 89
86 // Location for external extensions that are provided by this provider from 90 // Location for external extensions that are provided by this provider from
87 // update URLs. 91 // update URLs.
88 const Manifest::Location download_location_; 92 const Manifest::Location download_location_;
89 93
90 // Weak pointer to the object that consumes the external extensions. 94 // Weak pointer to the object that consumes the external extensions.
(...skipping 15 matching lines...) Expand all
106 Profile* profile_; 110 Profile* profile_;
107 111
108 // Creation flags to use for the extension. These flags will be used 112 // Creation flags to use for the extension. These flags will be used
109 // when calling Extension::Create() by the crx installer. 113 // when calling Extension::Create() by the crx installer.
110 int creation_flags_; 114 int creation_flags_;
111 115
112 // Whether loaded extensions should be automatically acknowledged, so that 116 // Whether loaded extensions should be automatically acknowledged, so that
113 // the user doesn't see an alert about them. 117 // the user doesn't see an alert about them.
114 bool auto_acknowledge_; 118 bool auto_acknowledge_;
115 119
120 // Whether the extensions from this provider should be installed immediately.
121 bool install_immediately_;
122
116 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); 123 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl);
117 }; 124 };
118 125
119 } // namespace extensions 126 } // namespace extensions
120 127
121 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 128 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_policy_loader_unittest.cc ('k') | chrome/browser/extensions/external_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698