OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_URL_FETCHER_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_URL_FETCHER_DELEGATE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
| 12 #include "content/common/content_export.h" |
| 13 |
| 14 class GURL; |
| 15 class URLFetcher; |
| 16 |
| 17 namespace net { |
| 18 class URLRequestStatus; |
| 19 typedef std::vector<std::string> ResponseCookies; |
| 20 } |
| 21 |
| 22 namespace content { |
| 23 // A delegate interface for users of URLFetcher. |
| 24 class CONTENT_EXPORT URLFetcherDelegate { |
| 25 public: |
| 26 // This will be called when the URL has been fetched, successfully or not. |
| 27 // Use accessor methods on |source| to get the results. |
| 28 virtual void OnURLFetchComplete(const URLFetcher* source) = 0; |
| 29 |
| 30 protected: |
| 31 virtual ~URLFetcherDelegate() {} |
| 32 }; |
| 33 |
| 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_PUBLIC_COMMON_URL_FETCHER_DELEGATE_H_ |
OLD | NEW |