| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/chromeos/cros/libcros_service_library.h" | 5 #include "chrome/browser/chromeos/cros/libcros_service_library.h" |
| 6 | 6 |
| 7 #include "base/synchronization/lock.h" | 7 #include "base/synchronization/lock.h" |
| 8 #include "chrome/browser/browser_thread.h" | |
| 9 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 9 #include "content/browser/browser_thread.h" |
| 10 #include "cros/chromeos_libcros_service.h" | 10 #include "cros/chromeos_libcros_service.h" |
| 11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
| 12 #include "net/proxy/proxy_service.h" | 12 #include "net/proxy/proxy_service.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 class LibCrosServiceLibraryImpl : public LibCrosServiceLibrary { | 16 class LibCrosServiceLibraryImpl : public LibCrosServiceLibrary { |
| 17 public: | 17 public: |
| 18 // Base class for all services of LibCrosService. | 18 // Base class for all services of LibCrosService. |
| 19 // Each subclass should declare DISABLE_RUNNABLE_METHOD_REFCOUNT to disable | 19 // Each subclass should declare DISABLE_RUNNABLE_METHOD_REFCOUNT to disable |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 } // namespace chromeos | 327 } // namespace chromeos |
| 328 | 328 |
| 329 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 329 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
| 330 // won't be deleted until it's last InvokeLater is run, so are all its | 330 // won't be deleted until it's last InvokeLater is run, so are all its |
| 331 // scoped_ptred class members. | 331 // scoped_ptred class members. |
| 332 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::LibCrosServiceLibraryImpl); | 332 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::LibCrosServiceLibraryImpl); |
| 333 DISABLE_RUNNABLE_METHOD_REFCOUNT( | 333 DISABLE_RUNNABLE_METHOD_REFCOUNT( |
| 334 chromeos::LibCrosServiceLibraryImpl::NetworkProxyLibrary); | 334 chromeos::LibCrosServiceLibraryImpl::NetworkProxyLibrary); |
| 335 | 335 |
| OLD | NEW |