| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SETUP_LISTENER_H_ | 5 #ifndef CLOUD_PRINT_SERVICE_SETUP_LISTENER_H_ |
| 6 #define CLOUD_PRINT_SERVICE_SETUP_LISTENER_H_ | 6 #define CLOUD_PRINT_SERVICE_SETUP_LISTENER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class SetupListener : public IPC::Listener { | 29 class SetupListener : public IPC::Listener { |
| 30 public: | 30 public: |
| 31 static const char kXpsAvailableJsonValueName[]; | 31 static const char kXpsAvailableJsonValueName[]; |
| 32 static const char kChromePathJsonValueName[]; | 32 static const char kChromePathJsonValueName[]; |
| 33 static const char kPrintersJsonValueName[]; | 33 static const char kPrintersJsonValueName[]; |
| 34 static const char kUserDataDirJsonValueName[]; | 34 static const char kUserDataDirJsonValueName[]; |
| 35 static const char kUserNameJsonValueName[]; | 35 static const char kUserNameJsonValueName[]; |
| 36 static const wchar_t kSetupPipeName[]; | 36 static const wchar_t kSetupPipeName[]; |
| 37 | 37 |
| 38 explicit SetupListener(const base::string16& user); | 38 explicit SetupListener(const base::string16& user); |
| 39 virtual ~SetupListener(); | 39 ~SetupListener() override; |
| 40 | 40 |
| 41 virtual bool OnMessageReceived(const IPC::Message& msg) override; | 41 bool OnMessageReceived(const IPC::Message& msg) override; |
| 42 virtual void OnChannelError() override; | 42 void OnChannelError() override; |
| 43 | 43 |
| 44 bool WaitResponce(const base::TimeDelta& delta); | 44 bool WaitResponce(const base::TimeDelta& delta); |
| 45 | 45 |
| 46 const base::FilePath& chrome_path() const { | 46 const base::FilePath& chrome_path() const { |
| 47 return chrome_path_; | 47 return chrome_path_; |
| 48 } | 48 } |
| 49 | 49 |
| 50 const base::FilePath& user_data_dir() const { | 50 const base::FilePath& user_data_dir() const { |
| 51 return user_data_dir_; | 51 return user_data_dir_; |
| 52 } | 52 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 74 bool is_xps_available_; | 74 bool is_xps_available_; |
| 75 bool succeded_; | 75 bool succeded_; |
| 76 | 76 |
| 77 scoped_ptr<base::WaitableEvent> done_event_; | 77 scoped_ptr<base::WaitableEvent> done_event_; |
| 78 scoped_ptr<base::Thread> ipc_thread_; | 78 scoped_ptr<base::Thread> ipc_thread_; |
| 79 scoped_ptr<IPC::Channel> channel_; | 79 scoped_ptr<IPC::Channel> channel_; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 #endif // CLOUD_PRINT_SERVICE_SETUP_LISTENER_H_ | 82 #endif // CLOUD_PRINT_SERVICE_SETUP_LISTENER_H_ |
| 83 | 83 |
| OLD | NEW |