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

Side by Side Diff: extensions/browser/content_verifier.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CONTENT_VERIFIER_H_ 5 #ifndef EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_
6 #define EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_ 6 #define EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Called (typically by a verification job) to indicate that verification 65 // Called (typically by a verification job) to indicate that verification
66 // failed while reading some file in |extension_id|. 66 // failed while reading some file in |extension_id|.
67 void VerifyFailed(const std::string& extension_id, 67 void VerifyFailed(const std::string& extension_id,
68 ContentVerifyJob::FailureReason reason); 68 ContentVerifyJob::FailureReason reason);
69 69
70 // ExtensionRegistryObserver interface 70 // ExtensionRegistryObserver interface
71 void OnExtensionLoaded(content::BrowserContext* browser_context, 71 void OnExtensionLoaded(content::BrowserContext* browser_context,
72 const Extension* extension) override; 72 const Extension* extension) override;
73 void OnExtensionUnloaded(content::BrowserContext* browser_context, 73 void OnExtensionUnloaded(content::BrowserContext* browser_context,
74 const Extension* extension, 74 const Extension* extension,
75 UnloadedExtensionInfo::Reason reason) override; 75 UnloadedExtensionReason reason) override;
76 76
77 private: 77 private:
78 DISALLOW_COPY_AND_ASSIGN(ContentVerifier); 78 DISALLOW_COPY_AND_ASSIGN(ContentVerifier);
79 79
80 friend class base::RefCountedThreadSafe<ContentVerifier>; 80 friend class base::RefCountedThreadSafe<ContentVerifier>;
81 ~ContentVerifier() override; 81 ~ContentVerifier() override;
82 82
83 void OnFetchComplete( 83 void OnFetchComplete(
84 const std::string& extension_id, 84 const std::string& extension_id,
85 bool success, 85 bool success,
(...skipping 25 matching lines...) Expand all
111 // For observing the ExtensionRegistry. 111 // For observing the ExtensionRegistry.
112 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> observer_; 112 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> observer_;
113 113
114 // Data that should only be used on the IO thread. 114 // Data that should only be used on the IO thread.
115 scoped_refptr<ContentVerifierIOData> io_data_; 115 scoped_refptr<ContentVerifierIOData> io_data_;
116 }; 116 };
117 117
118 } // namespace extensions 118 } // namespace extensions
119 119
120 #endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_ 120 #endif // EXTENSIONS_BROWSER_CONTENT_VERIFIER_H_
OLDNEW
« no previous file with comments | « extensions/browser/app_window/app_window_geometry_cache_unittest.cc ('k') | extensions/browser/content_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698