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

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

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 #include "chrome/browser/extensions/user_script_master.h" 5 #include "chrome/browser/extensions/user_script_master.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/pickle.h" 14 #include "base/pickle.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/threading/thread.h" 17 #include "base/threading/thread.h"
18 #include "base/version.h" 18 #include "base/version.h"
19 #include "chrome/browser/chrome_notification_types.h" 19 #include "chrome/browser/chrome_notification_types.h"
20 #include "chrome/browser/extensions/extension_service.h" 20 #include "chrome/browser/extensions/extension_service.h"
21 #include "chrome/browser/extensions/extension_system.h" 21 #include "chrome/browser/extensions/extension_system.h"
22 #include "chrome/browser/extensions/extension_util.h" 22 #include "chrome/browser/extensions/extension_util.h"
23 #include "chrome/browser/extensions/image_loader.h" 23 #include "chrome/browser/extensions/image_loader.h"
24 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" 25 #include "chrome/common/extensions/api/i18n/default_locale_handler.h"
26 #include "chrome/common/extensions/extension_file_util.h" 26 #include "chrome/common/extensions/extension_file_util.h"
27 #include "chrome/common/extensions/extension_set.h"
28 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" 27 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
29 #include "chrome/common/extensions/message_bundle.h" 28 #include "chrome/common/extensions/message_bundle.h"
30 #include "content/public/browser/notification_service.h" 29 #include "content/public/browser/notification_service.h"
31 #include "content/public/browser/render_process_host.h" 30 #include "content/public/browser/render_process_host.h"
32 #include "extensions/common/extension.h" 31 #include "extensions/common/extension.h"
33 #include "extensions/common/extension_resource.h" 32 #include "extensions/common/extension_resource.h"
33 #include "extensions/common/extension_set.h"
34 #include "ui/base/resource/resource_bundle.h" 34 #include "ui/base/resource/resource_bundle.h"
35 35
36 using content::BrowserThread; 36 using content::BrowserThread;
37 37
38 namespace extensions { 38 namespace extensions {
39 39
40 // Helper function to parse greasesmonkey headers 40 // Helper function to parse greasesmonkey headers
41 static bool GetDeclarationValue(const base::StringPiece& line, 41 static bool GetDeclarationValue(const base::StringPiece& line,
42 const base::StringPiece& prefix, 42 const base::StringPiece& prefix,
43 std::string* value) { 43 std::string* value) {
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 458
459 base::SharedMemoryHandle handle_for_process; 459 base::SharedMemoryHandle handle_for_process;
460 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) 460 if (!shared_memory->ShareToProcess(handle, &handle_for_process))
461 return; // This can legitimately fail if the renderer asserts at startup. 461 return; // This can legitimately fail if the renderer asserts at startup.
462 462
463 if (base::SharedMemory::IsHandleValid(handle_for_process)) 463 if (base::SharedMemory::IsHandleValid(handle_for_process))
464 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process)); 464 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process));
465 } 465 }
466 466
467 } // namespace extensions 467 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/user_script_master.h ('k') | chrome/browser/managed_mode/managed_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698