OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
13 #include "base/stl_util-inl.h" | 13 #include "base/stl_util.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "base/version.h" | 16 #include "base/version.h" |
17 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
20 #include "chrome/common/extensions/extension.h" | 20 #include "chrome/common/extensions/extension.h" |
21 #include "chrome/common/extensions/extension_messages.h" | 21 #include "chrome/common/extensions/extension_messages.h" |
22 #include "chrome/common/extensions/extension_resource.h" | 22 #include "chrome/common/extensions/extension_resource.h" |
23 #include "content/browser/renderer_host/render_process_host.h" | 23 #include "content/browser/renderer_host/render_process_host.h" |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 if (!handle) | 373 if (!handle) |
374 return; | 374 return; |
375 | 375 |
376 base::SharedMemoryHandle handle_for_process; | 376 base::SharedMemoryHandle handle_for_process; |
377 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) | 377 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) |
378 return; // This can legitimately fail if the renderer asserts at startup. | 378 return; // This can legitimately fail if the renderer asserts at startup. |
379 | 379 |
380 if (base::SharedMemory::IsHandleValid(handle_for_process)) | 380 if (base::SharedMemory::IsHandleValid(handle_for_process)) |
381 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process)); | 381 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process)); |
382 } | 382 } |
OLD | NEW |