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

Side by Side Diff: chrome/browser/process_singleton.h

Issue 6840003: first-run: Refactor Upgrade class into a common upgrade_util API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upgrade_utils -> upgrade_util Created 9 years, 8 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/first_run/upgrade_win.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) 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 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ 5 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_
6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_ 6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 bool kill_unresponsive); 75 bool kill_unresponsive);
76 NotifyResult NotifyOtherProcessWithTimeoutOrCreate( 76 NotifyResult NotifyOtherProcessWithTimeoutOrCreate(
77 const CommandLine& command_line, 77 const CommandLine& command_line,
78 int timeout_seconds); 78 int timeout_seconds);
79 #endif // defined(OS_LINUX) 79 #endif // defined(OS_LINUX)
80 80
81 #if defined(OS_WIN) 81 #if defined(OS_WIN)
82 // Used in specific cases to let us know that there is an existing instance 82 // Used in specific cases to let us know that there is an existing instance
83 // of Chrome running with this profile. In general, you should not use this 83 // of Chrome running with this profile. In general, you should not use this
84 // function. Instead consider using NotifyOtherProcessOrCreate(). 84 // function. Instead consider using NotifyOtherProcessOrCreate().
85 // For non profile-specific method, use Upgrade::IsBrowserAlreadyRunning(). 85 // For non profile-specific method, use
86 // upgrade_util::IsBrowserAlreadyRunning().
86 bool FoundOtherProcessWindow() const { 87 bool FoundOtherProcessWindow() const {
87 return (NULL != remote_window_); 88 return (NULL != remote_window_);
88 } 89 }
89 #endif // defined(OS_WIN) 90 #endif // defined(OS_WIN)
90 91
91 // Sets ourself up as the singleton instance. Returns true on success. If 92 // Sets ourself up as the singleton instance. Returns true on success. If
92 // false is returned, we are not the singleton instance and the caller must 93 // false is returned, we are not the singleton instance and the caller must
93 // exit. 94 // exit.
94 bool Create(); 95 bool Create();
95 96
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // File descriptor associated with the lockfile, valid between 172 // File descriptor associated with the lockfile, valid between
172 // |Create()| and |Cleanup()|. Two instances cannot have a lock on 173 // |Create()| and |Cleanup()|. Two instances cannot have a lock on
173 // the same file at the same time. 174 // the same file at the same time.
174 int lock_fd_; 175 int lock_fd_;
175 #endif 176 #endif
176 177
177 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); 178 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton);
178 }; 179 };
179 180
180 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_ 181 #endif // CHROME_BROWSER_PROCESS_SINGLETON_H_
OLDNEW
« no previous file with comments | « chrome/browser/first_run/upgrade_win.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698