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/process_singleton.h" | 5 #include "chrome/browser/process_singleton.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "chrome/installer/util/util_constants.h" | 38 #include "chrome/installer/util/util_constants.h" |
39 #include "chrome/installer/util/wmi.h" | 39 #include "chrome/installer/util/wmi.h" |
40 #include "components/version_info/version_info.h" | 40 #include "components/version_info/version_info.h" |
41 #include "content/public/common/result_codes.h" | 41 #include "content/public/common/result_codes.h" |
42 #include "net/base/escape.h" | 42 #include "net/base/escape.h" |
43 #include "third_party/kasko/kasko_features.h" | 43 #include "third_party/kasko/kasko_features.h" |
44 #include "ui/base/l10n/l10n_util.h" | 44 #include "ui/base/l10n/l10n_util.h" |
45 #include "ui/gfx/win/hwnd_util.h" | 45 #include "ui/gfx/win/hwnd_util.h" |
46 | 46 |
47 #if BUILDFLAG(ENABLE_KASKO_FAILED_RDV_REPORTS) | 47 #if BUILDFLAG(ENABLE_KASKO_FAILED_RDV_REPORTS) |
48 #include "chrome/app/chrome_crash_reporter_client.h" | 48 #include "chrome/app/chrome_crash_reporter_client_win.h" |
49 #include "chrome/chrome_watcher/kasko_util.h" | 49 #include "chrome/chrome_watcher/kasko_util.h" |
50 #endif // BUILDFLAG(ENABLE_KASKO_FAILED_RDV_REPORTS) | 50 #endif // BUILDFLAG(ENABLE_KASKO_FAILED_RDV_REPORTS) |
51 | 51 |
52 namespace { | 52 namespace { |
53 | 53 |
54 const char kLockfile[] = "lockfile"; | 54 const char kLockfile[] = "lockfile"; |
55 | 55 |
56 // A helper class that acquires the given |mutex| while the AutoLockMutex is in | 56 // A helper class that acquires the given |mutex| while the AutoLockMutex is in |
57 // scope. | 57 // scope. |
58 class AutoLockMutex { | 58 class AutoLockMutex { |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 return window_.hwnd() != NULL; | 433 return window_.hwnd() != NULL; |
434 } | 434 } |
435 | 435 |
436 void ProcessSingleton::Cleanup() { | 436 void ProcessSingleton::Cleanup() { |
437 } | 437 } |
438 | 438 |
439 void ProcessSingleton::OverrideShouldKillRemoteProcessCallbackForTesting( | 439 void ProcessSingleton::OverrideShouldKillRemoteProcessCallbackForTesting( |
440 const ShouldKillRemoteProcessCallback& display_dialog_callback) { | 440 const ShouldKillRemoteProcessCallback& display_dialog_callback) { |
441 should_kill_remote_process_callback_ = display_dialog_callback; | 441 should_kill_remote_process_callback_ = display_dialog_callback; |
442 } | 442 } |
OLD | NEW |