| OLD | NEW |
| 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 CHROME_BROWSER_SHELL_INTEGRATION_H_ | 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ | 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 const char* worker_name_; | 206 const char* worker_name_; |
| 207 | 207 |
| 208 DISALLOW_COPY_AND_ASSIGN(DefaultWebClientWorker); | 208 DISALLOW_COPY_AND_ASSIGN(DefaultWebClientWorker); |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 // Worker for checking and setting the default browser. | 211 // Worker for checking and setting the default browser. |
| 212 class DefaultBrowserWorker : public DefaultWebClientWorker { | 212 class DefaultBrowserWorker : public DefaultWebClientWorker { |
| 213 public: | 213 public: |
| 214 explicit DefaultBrowserWorker(const DefaultWebClientWorkerCallback& callback); | 214 explicit DefaultBrowserWorker(const DefaultWebClientWorkerCallback& callback); |
| 215 | 215 |
| 216 private: | 216 protected: |
| 217 ~DefaultBrowserWorker() override; | 217 ~DefaultBrowserWorker() override; |
| 218 | 218 |
| 219 private: |
| 219 // Check if Chrome is the default browser. | 220 // Check if Chrome is the default browser. |
| 220 DefaultWebClientState CheckIsDefaultImpl() override; | 221 DefaultWebClientState CheckIsDefaultImpl() override; |
| 221 | 222 |
| 222 // Set Chrome as the default browser. | 223 // Set Chrome as the default browser. |
| 223 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; | 224 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; |
| 224 | 225 |
| 225 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker); | 226 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker); |
| 226 }; | 227 }; |
| 227 | 228 |
| 228 // Worker for checking and setting the default client application | 229 // Worker for checking and setting the default client application |
| (...skipping 18 matching lines...) Expand all Loading... |
| 247 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; | 248 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; |
| 248 | 249 |
| 249 std::string protocol_; | 250 std::string protocol_; |
| 250 | 251 |
| 251 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 252 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
| 252 }; | 253 }; |
| 253 | 254 |
| 254 } // namespace shell_integration | 255 } // namespace shell_integration |
| 255 | 256 |
| 256 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 257 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| OLD | NEW |