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

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

Issue 560913006: Changing the Weakptr initialization order in chrome/browser/extension folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // Whether or not we are currently loading. 161 // Whether or not we are currently loading.
162 bool is_loading_; 162 bool is_loading_;
163 163
164 // The profile for which the scripts managed here are installed. 164 // The profile for which the scripts managed here are installed.
165 Profile* profile_; 165 Profile* profile_;
166 166
167 // ID of the extension that owns these scripts, if any. This is only set to a 167 // ID of the extension that owns these scripts, if any. This is only set to a
168 // non-empty value for declarative user script shared memory regions. 168 // non-empty value for declarative user script shared memory regions.
169 ExtensionId owner_extension_id_; 169 ExtensionId owner_extension_id_;
170 170
171 base::WeakPtrFactory<UserScriptLoader> weak_factory_;
172
173 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 171 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
174 extension_registry_observer_; 172 extension_registry_observer_;
175 173
174 base::WeakPtrFactory<UserScriptLoader> weak_factory_;
175
176 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader); 176 DISALLOW_COPY_AND_ASSIGN(UserScriptLoader);
177 }; 177 };
178 178
179 } // namespace extensions 179 } // namespace extensions
180 180
181 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_ 181 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater.cc ('k') | chrome/browser/extensions/user_script_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698