OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/login/signed_settings_helper.h" | 5 #include "chrome/browser/chromeos/login/signed_settings_helper.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "chrome/browser/chromeos/login/signed_settings.h" | 13 #include "chrome/browser/chromeos/login/signed_settings.h" |
14 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 14 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 | 16 |
| 17 using content::BrowserThread; |
| 18 |
17 namespace chromeos { | 19 namespace chromeos { |
18 | 20 |
19 namespace { | 21 namespace { |
20 | 22 |
21 class OpContext { | 23 class OpContext { |
22 public: | 24 public: |
23 class Delegate { | 25 class Delegate { |
24 public: | 26 public: |
25 virtual void OnOpCreated(OpContext* context) = 0; | 27 virtual void OnOpCreated(OpContext* context) = 0; |
26 virtual void OnOpStarted(OpContext* context) = 0; | 28 virtual void OnOpStarted(OpContext* context) = 0; |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 446 |
445 if (test_delegate_) | 447 if (test_delegate_) |
446 test_delegate_->OnOpCompleted(context->op()); | 448 test_delegate_->OnOpCompleted(context->op()); |
447 } | 449 } |
448 | 450 |
449 SignedSettingsHelper* SignedSettingsHelper::Get() { | 451 SignedSettingsHelper* SignedSettingsHelper::Get() { |
450 return g_signed_settings_helper_impl.Pointer(); | 452 return g_signed_settings_helper_impl.Pointer(); |
451 } | 453 } |
452 | 454 |
453 } // namespace chromeos | 455 } // namespace chromeos |
OLD | NEW |