Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: chrome/browser/process_singleton_win.cc

Issue 14951007: Refactor BrowserProcessPlatformPart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios? Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <shellapi.h> 7 #include <shellapi.h>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/process_info.h" 13 #include "base/process_info.h"
14 #include "base/process_util.h" 14 #include "base/process_util.h"
15 #include "base/stringprintf.h" 15 #include "base/stringprintf.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
19 #include "base/win/metro.h" 19 #include "base/win/metro.h"
20 #include "base/win/registry.h" 20 #include "base/win/registry.h"
21 #include "base/win/scoped_handle.h" 21 #include "base/win/scoped_handle.h"
22 #include "base/win/win_util.h" 22 #include "base/win/win_util.h"
23 #include "base/win/windows_version.h" 23 #include "base/win/windows_version.h"
24 #include "base/win/wrapped_window_proc.h" 24 #include "base/win/wrapped_window_proc.h"
25 #include "chrome/browser/browser_process.h" 25 #include "chrome/browser/browser_process.h"
26 #include "chrome/browser/browser_process_platform_part.h"
26 #include "chrome/browser/shell_integration.h" 27 #include "chrome/browser/shell_integration.h"
27 #include "chrome/browser/ui/metro_chrome_win.h" 28 #include "chrome/browser/ui/metro_chrome_win.h"
28 #include "chrome/browser/ui/simple_message_box.h" 29 #include "chrome/browser/ui/simple_message_box.h"
29 #include "chrome/common/chrome_constants.h" 30 #include "chrome/common/chrome_constants.h"
30 #include "chrome/common/chrome_paths.h" 31 #include "chrome/common/chrome_paths.h"
31 #include "chrome/common/chrome_paths_internal.h" 32 #include "chrome/common/chrome_paths_internal.h"
32 #include "chrome/common/chrome_switches.h" 33 #include "chrome/common/chrome_switches.h"
33 #include "chrome/installer/util/wmi.h" 34 #include "chrome/installer/util/wmi.h"
34 #include "content/public/common/result_codes.h" 35 #include "content/public/common/result_codes.h"
35 #include "grit/chromium_strings.h" 36 #include "grit/chromium_strings.h"
36 #include "grit/generated_resources.h" 37 #include "grit/generated_resources.h"
37 #include "net/base/escape.h" 38 #include "net/base/escape.h"
38 #include "ui/base/l10n/l10n_util.h" 39 #include "ui/base/l10n/l10n_util.h"
39 #include "ui/base/win/hwnd_util.h" 40 #include "ui/base/win/hwnd_util.h"
40 41
41 #if defined(USE_AURA)
42 #include "chrome/browser/browser_process_platform_part_aurawin.h"
43 #else
44 #include "chrome/browser/browser_process_platform_part.h"
45 #endif
46
47 namespace { 42 namespace {
48 43
49 const char kLockfile[] = "lockfile"; 44 const char kLockfile[] = "lockfile";
50 45
51 const char kSearchUrl[] = 46 const char kSearchUrl[] =
52 "http://www.google.com/search?q=%s&sourceid=chrome&ie=UTF-8"; 47 "http://www.google.com/search?q=%s&sourceid=chrome&ie=UTF-8";
53 48
54 const int kMetroChromeActivationTimeoutMs = 3000; 49 const int kMetroChromeActivationTimeoutMs = 3000;
55 50
56 // A helper class that acquires the given |mutex| while the AutoLockMutex is in 51 // A helper class that acquires the given |mutex| while the AutoLockMutex is in
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 switch (message) { 564 switch (message) {
570 case WM_COPYDATA: 565 case WM_COPYDATA:
571 return OnCopyData(reinterpret_cast<HWND>(wparam), 566 return OnCopyData(reinterpret_cast<HWND>(wparam),
572 reinterpret_cast<COPYDATASTRUCT*>(lparam)); 567 reinterpret_cast<COPYDATASTRUCT*>(lparam));
573 default: 568 default:
574 break; 569 break;
575 } 570 }
576 571
577 return ::DefWindowProc(hwnd, message, wparam, lparam); 572 return ::DefWindowProc(hwnd, message, wparam, lparam);
578 } 573 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698