| 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 | |
| 22 namespace extensions { | 18 namespace extensions { |
| 23 | 19 |
| 24 class SyncSetupHelper { | 20 class SyncSetupHelper { |
| 25 public: | 21 public: |
| 26 SyncSetupHelper(); | 22 SyncSetupHelper(); |
| 27 | 23 |
| 28 ~SyncSetupHelper(); | 24 ~SyncSetupHelper(); |
| 29 | 25 |
| 30 // Performs one-time initialization to enable sync for a profile. Does nothing | 26 // Performs one-time initialization to enable sync for a profile. Does nothing |
| 31 // if sync is already enabled for the profile. | 27 // if sync is already enabled for the profile. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // GAIA and sync server URLs under google.com. We use a scoped version | 69 // GAIA and sync server URLs under google.com. We use a scoped version |
| 74 // to override the default resolver while the test is active. | 70 // to override the default resolver while the test is active. |
| 75 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; | 71 scoped_ptr<net::ScopedDefaultHostResolverProc> mock_host_resolver_override_; |
| 76 | 72 |
| 77 DISALLOW_COPY_AND_ASSIGN(SyncSetupHelper); | 73 DISALLOW_COPY_AND_ASSIGN(SyncSetupHelper); |
| 78 }; | 74 }; |
| 79 | 75 |
| 80 } // namespace extensions | 76 } // namespace extensions |
| 81 | 77 |
| 82 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_SYNC_SETUP_HELPER_H_ |
| OLD | NEW |