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_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "net/dns/mock_host_resolver.h" | 13 #include "net/dns/mock_host_resolver.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 class ProfileSyncServiceHarness; | 16 class ProfileSyncServiceHarness; |
17 | 17 |
| 18 namespace base { |
| 19 class FilePath; |
| 20 } |
| 21 |
18 namespace extensions { | 22 namespace extensions { |
19 | 23 |
20 class SyncSetupHelper { | 24 class SyncSetupHelper { |
21 public: | 25 public: |
22 SyncSetupHelper(); | 26 SyncSetupHelper(); |
23 | 27 |
24 ~SyncSetupHelper(); | 28 ~SyncSetupHelper(); |
25 | 29 |
26 // Performs one-time initialization to enable sync for a profile. Does nothing | 30 // Performs one-time initialization to enable sync for a profile. Does nothing |
27 // if sync is already enabled for the profile. | 31 // if sync is already enabled for the profile. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // GAIA and sync server URLs under google.com. We use a scoped version | 73 // GAIA and sync server URLs under google.com. We use a scoped version |
70 // to override the default resolver while the test is active. | 74 // to override the default resolver while the test is active. |
71 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; | 75 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; |
72 | 76 |
73 DISALLOW_COPY_AND_ASSIGN(SyncSetupHelper); | 77 DISALLOW_COPY_AND_ASSIGN(SyncSetupHelper); |
74 }; | 78 }; |
75 | 79 |
76 } // namespace extensions | 80 } // namespace extensions |
77 | 81 |
78 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ | 82 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ |
OLD | NEW |