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

Side by Side Diff: extensions/renderer/user_script_set_manager.h

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « extensions/renderer/user_script_injector.h ('k') | extensions/renderer/utils_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_USER_SCRIPT_SET_MANAGER_H_ 5 #ifndef EXTENSIONS_RENDERER_USER_SCRIPT_SET_MANAGER_H_
6 #define EXTENSIONS_RENDERER_USER_SCRIPT_SET_MANAGER_H_ 6 #define EXTENSIONS_RENDERER_USER_SCRIPT_SET_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // |programmatic_scripts_|. 76 // |programmatic_scripts_|.
77 void GetAllActiveExtensionIds(std::set<std::string>* ids) const; 77 void GetAllActiveExtensionIds(std::set<std::string>* ids) const;
78 78
79 const UserScriptSet* static_scripts() const { return &static_scripts_; } 79 const UserScriptSet* static_scripts() const { return &static_scripts_; }
80 80
81 private: 81 private:
82 // Map for per-extension sets that may be defined programmatically. 82 // Map for per-extension sets that may be defined programmatically.
83 typedef std::map<ExtensionId, linked_ptr<UserScriptSet> > UserScriptSetMap; 83 typedef std::map<ExtensionId, linked_ptr<UserScriptSet> > UserScriptSetMap;
84 84
85 // content::RenderProcessObserver implementation. 85 // content::RenderProcessObserver implementation.
86 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 86 virtual bool OnControlMessageReceived(const IPC::Message& message) override;
87 87
88 UserScriptSet* GetProgrammaticScriptsByExtension( 88 UserScriptSet* GetProgrammaticScriptsByExtension(
89 const ExtensionId& extensionId); 89 const ExtensionId& extensionId);
90 90
91 // Handle the UpdateUserScripts extension message. 91 // Handle the UpdateUserScripts extension message.
92 void OnUpdateUserScripts(base::SharedMemoryHandle shared_memory, 92 void OnUpdateUserScripts(base::SharedMemoryHandle shared_memory,
93 const ExtensionId& extension_id, 93 const ExtensionId& extension_id,
94 const std::set<std::string>& changed_extensions); 94 const std::set<std::string>& changed_extensions);
95 95
96 // Scripts statically defined in extension manifests. 96 // Scripts statically defined in extension manifests.
97 UserScriptSet static_scripts_; 97 UserScriptSet static_scripts_;
98 98
99 // Scripts programmatically-defined through API calls (initialized and stored 99 // Scripts programmatically-defined through API calls (initialized and stored
100 // per-extension). 100 // per-extension).
101 UserScriptSetMap programmatic_scripts_; 101 UserScriptSetMap programmatic_scripts_;
102 102
103 // The set of all known extensions. Owned by the Dispatcher. 103 // The set of all known extensions. Owned by the Dispatcher.
104 const ExtensionSet* extensions_; 104 const ExtensionSet* extensions_;
105 105
106 // The associated observers. 106 // The associated observers.
107 ObserverList<Observer> observers_; 107 ObserverList<Observer> observers_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(UserScriptSetManager); 109 DISALLOW_COPY_AND_ASSIGN(UserScriptSetManager);
110 }; 110 };
111 111
112 } // namespace extensions 112 } // namespace extensions
113 113
114 #endif // EXTENSIONS_RENDERER_USER_SCRIPT_SET_MANAGER_H_ 114 #endif // EXTENSIONS_RENDERER_USER_SCRIPT_SET_MANAGER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/user_script_injector.h ('k') | extensions/renderer/utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698