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

Side by Side Diff: extensions/browser/info_map.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 EXTENSIONS_BROWSER_INFO_MAP_H_ 5 #ifndef EXTENSIONS_BROWSER_INFO_MAP_H_
6 #define EXTENSIONS_BROWSER_INFO_MAP_H_ 6 #define EXTENSIONS_BROWSER_INFO_MAP_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 26 matching lines...) Expand all
37 const ProcessMap& process_map() const { return process_map_; } 37 const ProcessMap& process_map() const { return process_map_; }
38 38
39 // Callback for when new extensions are loaded. 39 // Callback for when new extensions are loaded.
40 void AddExtension(const extensions::Extension* extension, 40 void AddExtension(const extensions::Extension* extension,
41 base::Time install_time, 41 base::Time install_time,
42 bool incognito_enabled, 42 bool incognito_enabled,
43 bool notifications_disabled); 43 bool notifications_disabled);
44 44
45 // Callback for when an extension is unloaded. 45 // Callback for when an extension is unloaded.
46 void RemoveExtension(const std::string& extension_id, 46 void RemoveExtension(const std::string& extension_id,
47 const extensions::UnloadedExtensionInfo::Reason reason); 47 const extensions::UnloadedExtensionReason reason);
48 48
49 // Returns the time the extension was installed, or base::Time() if not found. 49 // Returns the time the extension was installed, or base::Time() if not found.
50 base::Time GetInstallTime(const std::string& extension_id) const; 50 base::Time GetInstallTime(const std::string& extension_id) const;
51 51
52 // Returns true if the user has allowed this extension to run in incognito 52 // Returns true if the user has allowed this extension to run in incognito
53 // mode. 53 // mode.
54 bool IsIncognitoEnabled(const std::string& extension_id) const; 54 bool IsIncognitoEnabled(const std::string& extension_id) const;
55 55
56 // Returns true if the given extension can see events and data from another 56 // Returns true if the given extension can see events and data from another
57 // sub-profile (incognito to original profile, or vice versa). 57 // sub-profile (incognito to original profile, or vice versa).
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Assignment of extensions to renderer processes. 110 // Assignment of extensions to renderer processes.
111 extensions::ProcessMap process_map_; 111 extensions::ProcessMap process_map_;
112 112
113 scoped_refptr<ContentVerifier> content_verifier_; 113 scoped_refptr<ContentVerifier> content_verifier_;
114 }; 114 };
115 115
116 } // namespace extensions 116 } // namespace extensions
117 117
118 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_ 118 #endif // EXTENSIONS_BROWSER_INFO_MAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698