| OLD | NEW |
| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/version.h" | 13 #include "base/version.h" |
| 14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
| 15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
| 16 #include "chrome/browser/extensions/extension_util.h" | 16 #include "chrome/browser/extensions/extension_util.h" |
| 17 #include "chrome/browser/extensions/image_loader.h" | |
| 18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" | 18 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" |
| 20 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 19 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
| 21 #include "content/public/browser/notification_service.h" | 20 #include "content/public/browser/notification_service.h" |
| 22 #include "content/public/browser/render_process_host.h" | 21 #include "content/public/browser/render_process_host.h" |
| 23 #include "extensions/browser/content_verifier.h" | 22 #include "extensions/browser/content_verifier.h" |
| 24 #include "extensions/browser/extension_registry.h" | 23 #include "extensions/browser/extension_registry.h" |
| 25 #include "extensions/browser/extension_system.h" | 24 #include "extensions/browser/extension_system.h" |
| 25 #include "extensions/browser/image_loader.h" |
| 26 #include "extensions/common/file_util.h" | 26 #include "extensions/common/file_util.h" |
| 27 #include "extensions/common/message_bundle.h" | 27 #include "extensions/common/message_bundle.h" |
| 28 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 29 | 29 |
| 30 using content::BrowserThread; | 30 using content::BrowserThread; |
| 31 | 31 |
| 32 namespace extensions { | 32 namespace extensions { |
| 33 | 33 |
| 34 // Helper function to parse greasesmonkey headers | 34 // Helper function to parse greasesmonkey headers |
| 35 static bool GetDeclarationValue(const base::StringPiece& line, | 35 static bool GetDeclarationValue(const base::StringPiece& line, |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) | 521 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) |
| 522 return; // This can legitimately fail if the renderer asserts at startup. | 522 return; // This can legitimately fail if the renderer asserts at startup. |
| 523 | 523 |
| 524 if (base::SharedMemory::IsHandleValid(handle_for_process)) { | 524 if (base::SharedMemory::IsHandleValid(handle_for_process)) { |
| 525 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process, | 525 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process, |
| 526 changed_extensions)); | 526 changed_extensions)); |
| 527 } | 527 } |
| 528 } | 528 } |
| 529 | 529 |
| 530 } // namespace extensions | 530 } // namespace extensions |
| OLD | NEW |