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

Side by Side Diff: cloud_print/service/win/chrome_launcher.h

Issue 10546149: Factor out logic to find chrome.exe from Omaha client state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use chrome from current dir in development. Created 8 years, 6 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 | « cloud_print/service/service.gyp ('k') | cloud_print/service/win/chrome_launcher.cc » ('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 #ifndef CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_ 5 #ifndef CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
6 #define CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_ 6 #define CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/threading/simple_thread.h" 13 #include "base/threading/simple_thread.h"
14 14
15 class ChromeLauncher : public base::DelegateSimpleThread::Delegate { 15 class ChromeLauncher : public base::DelegateSimpleThread::Delegate {
16 public: 16 public:
17 explicit ChromeLauncher(const FilePath& user_data); 17 explicit ChromeLauncher(const FilePath& user_data);
18 18
19 virtual ~ChromeLauncher(); 19 virtual ~ChromeLauncher();
20 20
21 bool Start(); 21 bool Start();
22 void Stop(); 22 void Stop();
23 23
24 virtual void Run() OVERRIDE; 24 virtual void Run() OVERRIDE;
25 25
26 static FilePath GetChromePath(HKEY key);
27
28 private: 26 private:
29 FilePath user_data_; 27 FilePath user_data_;
30 base::WaitableEvent stop_event_; 28 base::WaitableEvent stop_event_;
31 scoped_ptr<base::DelegateSimpleThread> thread_; 29 scoped_ptr<base::DelegateSimpleThread> thread_;
32 30
33 DISALLOW_COPY_AND_ASSIGN(ChromeLauncher); 31 DISALLOW_COPY_AND_ASSIGN(ChromeLauncher);
34 }; 32 };
35 33
36 #endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_ 34 #endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
37
OLDNEW
« no previous file with comments | « cloud_print/service/service.gyp ('k') | cloud_print/service/win/chrome_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698