OLD | NEW |
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 #include "extensions/browser/user_script_loader.h" | 5 #include "extensions/browser/user_script_loader.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <set> | 9 #include <set> |
8 #include <string> | 10 #include <string> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "base/version.h" | 13 #include "base/version.h" |
12 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
13 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/notification_service.h" | 16 #include "content/public/browser/notification_service.h" |
15 #include "content/public/browser/notification_types.h" | 17 #include "content/public/browser/notification_types.h" |
16 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) | 400 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) |
399 return; // This can legitimately fail if the renderer asserts at startup. | 401 return; // This can legitimately fail if the renderer asserts at startup. |
400 | 402 |
401 if (base::SharedMemory::IsHandleValid(handle_for_process)) { | 403 if (base::SharedMemory::IsHandleValid(handle_for_process)) { |
402 process->Send(new ExtensionMsg_UpdateUserScripts( | 404 process->Send(new ExtensionMsg_UpdateUserScripts( |
403 handle_for_process, host_id(), changed_hosts, whitelisted_only)); | 405 handle_for_process, host_id(), changed_hosts, whitelisted_only)); |
404 } | 406 } |
405 } | 407 } |
406 | 408 |
407 } // namespace extensions | 409 } // namespace extensions |
OLD | NEW |