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_CHROMEOS_GDATA_GDATA_OPERATION_RUNNER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATION_RUNNER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATION_RUNNER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATION_RUNNER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "chrome/browser/chromeos/gdata/gdata_auth_service.h" | 13 #include "chrome/browser/chromeos/gdata/gdata_auth_service.h" |
14 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 14 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
15 #include "chrome/browser/chromeos/gdata/gdata_params.h" | |
16 | 15 |
17 class Profile; | 16 class Profile; |
18 | 17 |
19 namespace gdata { | 18 namespace gdata { |
20 | 19 |
21 class GDataOperationInterface; | 20 class GDataOperationInterface; |
22 class GDataOperationRegistry; | 21 class GDataOperationRegistry; |
23 | 22 |
24 // Helper class that runs GDataOperationInterface objects, handling retries and | 23 // Helper class that runs GDataOperationInterface objects, handling retries and |
25 // authentication. | 24 // authentication. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Note: This should remain the last member so it'll be destroyed and | 72 // Note: This should remain the last member so it'll be destroyed and |
74 // invalidate its weak pointers before any other members are destroyed. | 73 // invalidate its weak pointers before any other members are destroyed. |
75 base::WeakPtrFactory<GDataOperationRunner> weak_ptr_factory_; | 74 base::WeakPtrFactory<GDataOperationRunner> weak_ptr_factory_; |
76 | 75 |
77 DISALLOW_COPY_AND_ASSIGN(GDataOperationRunner); | 76 DISALLOW_COPY_AND_ASSIGN(GDataOperationRunner); |
78 }; | 77 }; |
79 | 78 |
80 } // namespace gdata | 79 } // namespace gdata |
81 | 80 |
82 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATION_RUNNER_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATION_RUNNER_H_ |
OLD | NEW |