| 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 #include "chrome/browser/chromeos/gdata/operation_registry.h" | 5 #include "chrome/browser/google_apis/operation_registry.h" |
| 6 | 6 |
| 7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
| 8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
| 9 | 9 |
| 10 using content::BrowserThread; | 10 using content::BrowserThread; |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 const int64 kNotificationFrequencyInMilliseconds = 1000; | 14 const int64 kNotificationFrequencyInMilliseconds = 1000; |
| 15 | 15 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 return false; | 339 return false; |
| 340 } | 340 } |
| 341 | 341 |
| 342 void OperationRegistry::NotifyStatusToObservers() { | 342 void OperationRegistry::NotifyStatusToObservers() { |
| 343 ProgressStatusList list(GetProgressStatusList()); | 343 ProgressStatusList list(GetProgressStatusList()); |
| 344 if (ShouldNotifyStatusNow(list)) | 344 if (ShouldNotifyStatusNow(list)) |
| 345 FOR_EACH_OBSERVER(Observer, observer_list_, OnProgressUpdate(list)); | 345 FOR_EACH_OBSERVER(Observer, observer_list_, OnProgressUpdate(list)); |
| 346 } | 346 } |
| 347 | 347 |
| 348 } // namespace gdata | 348 } // namespace gdata |
| OLD | NEW |