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 #ifndef CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ |
6 #define CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ | 6 #define CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 FAILED, | 40 FAILED, |
41 }; | 41 }; |
42 | 42 |
43 explicit AlternateNavURLFetcher(const GURL& alternate_nav_url); | 43 explicit AlternateNavURLFetcher(const GURL& alternate_nav_url); |
44 virtual ~AlternateNavURLFetcher(); | 44 virtual ~AlternateNavURLFetcher(); |
45 | 45 |
46 State state() const { return state_; } | 46 State state() const { return state_; } |
47 | 47 |
48 private: | 48 private: |
49 // NotificationObserver | 49 // NotificationObserver |
50 virtual void Observe(NotificationType type, | 50 virtual void Observe(int type, |
51 const NotificationSource& source, | 51 const NotificationSource& source, |
52 const NotificationDetails& details) OVERRIDE; | 52 const NotificationDetails& details) OVERRIDE; |
53 | 53 |
54 // URLFetcher::Delegate | 54 // URLFetcher::Delegate |
55 virtual void OnURLFetchComplete(const URLFetcher* source, | 55 virtual void OnURLFetchComplete(const URLFetcher* source, |
56 const GURL& url, | 56 const GURL& url, |
57 const net::URLRequestStatus& status, | 57 const net::URLRequestStatus& status, |
58 int response_code, | 58 int response_code, |
59 const net::ResponseCookies& cookies, | 59 const net::ResponseCookies& cookies, |
60 const std::string& data) OVERRIDE; | 60 const std::string& data) OVERRIDE; |
(...skipping 23 matching lines...) Expand all Loading... |
84 | 84 |
85 // The TabContents the InfoBarDelegate was added to. | 85 // The TabContents the InfoBarDelegate was added to. |
86 TabContents* infobar_contents_; | 86 TabContents* infobar_contents_; |
87 | 87 |
88 NotificationRegistrar registrar_; | 88 NotificationRegistrar registrar_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(AlternateNavURLFetcher); | 90 DISALLOW_COPY_AND_ASSIGN(AlternateNavURLFetcher); |
91 }; | 91 }; |
92 | 92 |
93 #endif // CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ | 93 #endif // CHROME_BROWSER_ALTERNATE_NAV_URL_FETCHER_H_ |
OLD | NEW |