| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "components/sync_driver/sync_service_observer.h" | 10 #include "components/sync/driver/sync_service_observer.h" |
| 11 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 class ProfileSyncService; | 14 class ProfileSyncService; |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class WebContents; | 17 class WebContents; |
| 18 } | 18 } |
| 19 | 19 |
| 20 class OneClickSigninSyncObserver : public content::WebContentsObserver, | 20 class OneClickSigninSyncObserver : public content::WebContentsObserver, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 // The URL to redirect to once Sync is initialized. | 51 // The URL to redirect to once Sync is initialized. |
| 52 const GURL continue_url_; | 52 const GURL continue_url_; |
| 53 | 53 |
| 54 base::WeakPtrFactory<OneClickSigninSyncObserver> weak_ptr_factory_; | 54 base::WeakPtrFactory<OneClickSigninSyncObserver> weak_ptr_factory_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncObserver); | 56 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncObserver); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_OBSERVER_H_ | 59 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_OBSERVER_H_ |
| OLD | NEW |