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

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

Issue 1100633004: Update {virtual,override} to follow C++11 style in cloud_print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 5 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
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 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/threading/simple_thread.h" 14 #include "base/threading/simple_thread.h"
15 15
16 class ChromeLauncher : public base::DelegateSimpleThread::Delegate { 16 class ChromeLauncher : public base::DelegateSimpleThread::Delegate {
17 public: 17 public:
18 explicit ChromeLauncher(const base::FilePath& user_data); 18 explicit ChromeLauncher(const base::FilePath& user_data);
19 19
20 virtual ~ChromeLauncher(); 20 ~ChromeLauncher() override;
21 21
22 bool Start(); 22 bool Start();
23 void Stop(); 23 void Stop();
24 24
25 virtual void Run() override; 25 // base::DelegateSimpleThread::Delegate:
26 void Run() override;
26 27
27 static std::string CreateServiceStateFile( 28 static std::string CreateServiceStateFile(
28 const std::string& proxy_id, 29 const std::string& proxy_id,
29 const std::vector<std::string>& printers); 30 const std::vector<std::string>& printers);
30 31
31 private: 32 private:
32 base::FilePath user_data_; 33 base::FilePath user_data_;
33 base::WaitableEvent stop_event_; 34 base::WaitableEvent stop_event_;
34 scoped_ptr<base::DelegateSimpleThread> thread_; 35 scoped_ptr<base::DelegateSimpleThread> thread_;
35 36
36 DISALLOW_COPY_AND_ASSIGN(ChromeLauncher); 37 DISALLOW_COPY_AND_ASSIGN(ChromeLauncher);
37 }; 38 };
38 39
39 #endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_ 40 #endif // CLOUD_PRINT_SERVICE_CHROME_LAUNCHER_H_
OLDNEW
« no previous file with comments | « cloud_print/gcp20/prototype/privet_http_server.h ('k') | cloud_print/service/win/cloud_print_service_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698