| 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/process_singleton.h" | 5 #include "chrome/browser/process_singleton.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "base/win/scoped_handle.h" | 13 #include "base/win/scoped_handle.h" |
| 14 #include "base/win/wrapped_window_proc.h" | 14 #include "base/win/wrapped_window_proc.h" |
| 15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 16 #include "chrome/browser/extensions/extensions_startup.h" | 16 #include "chrome/browser/extensions/extensions_startup.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
| 19 #include "chrome/browser/simple_message_box.h" | 19 #include "chrome/browser/simple_message_box.h" |
| 20 #include "chrome/browser/ui/browser_init.h" | 20 #include "chrome/browser/ui/browser_init.h" |
| 21 #include "chrome/common/chrome_constants.h" | 21 #include "chrome/common/chrome_constants.h" |
| 22 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
| 23 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 24 #include "chrome/installer/util/wmi.h" | 24 #include "chrome/installer/util/wmi.h" |
| 25 #include "content/common/result_codes.h" | 25 #include "content/public/common/result_codes.h" |
| 26 #include "grit/chromium_strings.h" | 26 #include "grit/chromium_strings.h" |
| 27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
| 29 #include "ui/base/win/hwnd_util.h" | 29 #include "ui/base/win/hwnd_util.h" |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // Checks the visibility of the enumerated window and signals once a visible | 33 // Checks the visibility of the enumerated window and signals once a visible |
| 34 // window has been found. | 34 // window has been found. |
| 35 BOOL CALLBACK BrowserWindowEnumeration(HWND window, LPARAM param) { | 35 BOOL CALLBACK BrowserWindowEnumeration(HWND window, LPARAM param) { |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 switch (message) { | 338 switch (message) { |
| 339 case WM_COPYDATA: | 339 case WM_COPYDATA: |
| 340 return OnCopyData(reinterpret_cast<HWND>(wparam), | 340 return OnCopyData(reinterpret_cast<HWND>(wparam), |
| 341 reinterpret_cast<COPYDATASTRUCT*>(lparam)); | 341 reinterpret_cast<COPYDATASTRUCT*>(lparam)); |
| 342 default: | 342 default: |
| 343 break; | 343 break; |
| 344 } | 344 } |
| 345 | 345 |
| 346 return ::DefWindowProc(hwnd, message, wparam, lparam); | 346 return ::DefWindowProc(hwnd, message, wparam, lparam); |
| 347 } | 347 } |
| OLD | NEW |