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

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

Issue 2228743002: Rework some UserScriptLoader logic in preparation to removing UserScript copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix DCHECK Created 4 years, 4 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_SHARED_USER_SCRIPT_MASTER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SHARED_USER_SCRIPT_MASTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_SHARED_USER_SCRIPT_MASTER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SHARED_USER_SCRIPT_MASTER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 private: 38 private:
39 // ExtensionRegistryObserver implementation. 39 // ExtensionRegistryObserver implementation.
40 void OnExtensionLoaded(content::BrowserContext* browser_context, 40 void OnExtensionLoaded(content::BrowserContext* browser_context,
41 const Extension* extension) override; 41 const Extension* extension) override;
42 void OnExtensionUnloaded(content::BrowserContext* browser_context, 42 void OnExtensionUnloaded(content::BrowserContext* browser_context,
43 const Extension* extension, 43 const Extension* extension,
44 UnloadedExtensionInfo::Reason reason) override; 44 UnloadedExtensionInfo::Reason reason) override;
45 45
46 // Gets an extension's scripts' metadata; i.e., gets a list of UserScript 46 // Gets an extension's scripts' metadata; i.e., gets a list of UserScript
47 // objects that contains script info, but not the contents of the scripts. 47 // objects that contains script info, but not the contents of the scripts.
48 const std::set<UserScript> GetScriptsMetadata(const Extension* extension); 48 const std::vector<UserScript> GetScriptsMetadata(const Extension* extension);
Devlin 2016/08/11 01:09:27 Nit: UserScriptList?
lazyboy 2016/08/11 01:51:06 Done.
49 49
50 // Script loader that handles loading contents of scripts into shared memory 50 // Script loader that handles loading contents of scripts into shared memory
51 // and notifying renderers of scripts in shared memory. 51 // and notifying renderers of scripts in shared memory.
52 ExtensionUserScriptLoader loader_; 52 ExtensionUserScriptLoader loader_;
53 53
54 // The profile for which the scripts managed here are installed. 54 // The profile for which the scripts managed here are installed.
55 Profile* profile_; 55 Profile* profile_;
56 56
57 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 57 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
58 extension_registry_observer_; 58 extension_registry_observer_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(SharedUserScriptMaster); 60 DISALLOW_COPY_AND_ASSIGN(SharedUserScriptMaster);
61 }; 61 };
62 62
63 } // namespace extensions 63 } // namespace extensions
64 64
65 #endif // CHROME_BROWSER_EXTENSIONS_SHARED_USER_SCRIPT_MASTER_H_ 65 #endif // CHROME_BROWSER_EXTENSIONS_SHARED_USER_SCRIPT_MASTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/shared_user_script_master.cc » ('j') | extensions/browser/user_script_loader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698