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

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

Issue 102103005: Move c/c/e/extension_set to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MASTER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_
6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/shared_memory.h" 15 #include "base/memory/shared_memory.h"
16 #include "base/strings/string_piece.h" 16 #include "base/strings/string_piece.h"
17 #include "chrome/common/extensions/extension_messages.h" 17 #include "chrome/common/extensions/extension_messages.h"
18 #include "chrome/common/extensions/extension_set.h"
19 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "extensions/common/extension_set.h"
22 #include "extensions/common/user_script.h" 22 #include "extensions/common/user_script.h"
23 23
24 namespace content { 24 namespace content {
25 class RenderProcessHost; 25 class RenderProcessHost;
26 } 26 }
27 27
28 class Profile; 28 class Profile;
29 29
30 namespace extensions {
31
30 typedef std::map<std::string, ExtensionSet::ExtensionPathAndDefaultLocale> 32 typedef std::map<std::string, ExtensionSet::ExtensionPathAndDefaultLocale>
31 ExtensionsInfo; 33 ExtensionsInfo;
32 34
33 namespace extensions {
34
35 // Manages a segment of shared memory that contains the user scripts the user 35 // Manages a segment of shared memory that contains the user scripts the user
36 // has installed. Lives on the UI thread. 36 // has installed. Lives on the UI thread.
37 class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>, 37 class UserScriptMaster : public base::RefCountedThreadSafe<UserScriptMaster>,
38 public content::NotificationObserver { 38 public content::NotificationObserver {
39 public: 39 public:
40 explicit UserScriptMaster(Profile* profile); 40 explicit UserScriptMaster(Profile* profile);
41 41
42 // Kicks off a process on the file thread to reload scripts from disk 42 // Kicks off a process on the file thread to reload scripts from disk
43 // into a new chunk of shared memory and notify renderers. 43 // into a new chunk of shared memory and notify renderers.
44 virtual void StartLoad(); 44 virtual void StartLoad();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // The profile for which the scripts managed here are installed. 165 // The profile for which the scripts managed here are installed.
166 Profile* profile_; 166 Profile* profile_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(UserScriptMaster); 168 DISALLOW_COPY_AND_ASSIGN(UserScriptMaster);
169 }; 169 };
170 170
171 } // namespace extensions 171 } // namespace extensions
172 172
173 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_ 173 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_MASTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater.cc ('k') | chrome/browser/extensions/user_script_master.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698