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

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

Issue 8800016: Exempt default apps from external-extension alerts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSION_PROVIDER_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 virtual bool IsReady() const OVERRIDE; 65 virtual bool IsReady() const OVERRIDE;
66 66
67 static const char kLocation[]; 67 static const char kLocation[];
68 static const char kState[]; 68 static const char kState[];
69 static const char kExternalCrx[]; 69 static const char kExternalCrx[];
70 static const char kExternalVersion[]; 70 static const char kExternalVersion[];
71 static const char kExternalUpdateUrl[]; 71 static const char kExternalUpdateUrl[];
72 static const char kSupportedLocales[]; 72 static const char kSupportedLocales[];
73 73
74 void set_should_acknowledge(bool should_acknowledge) {
75 should_acknowledge_ = should_acknowledge;
76 }
77
74 private: 78 private:
75 // Location for external extensions that are provided by this provider from 79 // Location for external extensions that are provided by this provider from
76 // local crx files. 80 // local crx files.
77 const Extension::Location crx_location_; 81 const Extension::Location crx_location_;
78 82
79 // Location for external extensions that are provided by this provider from 83 // Location for external extensions that are provided by this provider from
80 // update URLs. 84 // update URLs.
81 const Extension::Location download_location_; 85 const Extension::Location download_location_;
82 86
83 // Weak pointer to the object that consumes the external extensions. 87 // Weak pointer to the object that consumes the external extensions.
84 // This is zeroed out by: ServiceShutdown() 88 // This is zeroed out by: ServiceShutdown()
85 VisitorInterface* service_; // weak 89 VisitorInterface* service_; // weak
86 90
87 // Dictionary of the external extensions that are provided by this provider. 91 // Dictionary of the external extensions that are provided by this provider.
88 scoped_ptr<base::DictionaryValue> prefs_; 92 scoped_ptr<base::DictionaryValue> prefs_;
89 93
90 // Indicates that the extensions provided by this provider are loaded 94 // Indicates that the extensions provided by this provider are loaded
91 // entirely. 95 // entirely.
92 bool ready_; 96 bool ready_;
93 97
94 // The loader that loads the list of external extensions and reports them 98 // The loader that loads the list of external extensions and reports them
95 // via |SetPrefs|. 99 // via |SetPrefs|.
96 scoped_refptr<ExternalExtensionLoader> loader_; 100 scoped_refptr<ExternalExtensionLoader> loader_;
97 101
98 // Creation flags to use for the extension. These flags will be used 102 // Creation flags to use for the extension. These flags will be used
99 // when calling Extenion::Create() by the crx installer. 103 // when calling Extenion::Create() by the crx installer.
100 int creation_flags_; 104 int creation_flags_;
101 105
106 // Whether loaded extensions should be automatically acknowledged, so that
107 // the user doesn't see an alert about them.
108 bool should_acknowledge_;
Roger Tawa OOO till Jul 10th 2011/12/05 19:42:38 maybe rename this to auto_acknowledge_ ?
109
102 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionProviderImpl); 110 DISALLOW_COPY_AND_ASSIGN(ExternalExtensionProviderImpl);
103 }; 111 };
104 112
105 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_ 113 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698