| 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 CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // For testing purposes; sets the factory for use in testing. | 41 // For testing purposes; sets the factory for use in testing. |
| 42 static void SetFactoryForTesting(NavigationURLLoaderFactory* factory); | 42 static void SetFactoryForTesting(NavigationURLLoaderFactory* factory); |
| 43 | 43 |
| 44 virtual ~NavigationURLLoader() {} | 44 virtual ~NavigationURLLoader() {} |
| 45 | 45 |
| 46 // Called in response to OnRequestRedirected to continue processing the | 46 // Called in response to OnRequestRedirected to continue processing the |
| 47 // request. | 47 // request. |
| 48 virtual void FollowRedirect() = 0; | 48 virtual void FollowRedirect() = 0; |
| 49 | 49 |
| 50 // Called in response to OnResponseStarted to process the response. |
| 51 virtual void ProceedWithResponse() = 0; |
| 52 |
| 50 protected: | 53 protected: |
| 51 NavigationURLLoader() {} | 54 NavigationURLLoader() {} |
| 52 | 55 |
| 53 private: | 56 private: |
| 54 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoader); | 57 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoader); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace content | 60 } // namespace content |
| 58 | 61 |
| 59 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ | 62 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ |
| OLD | NEW |