| 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_IMPL_CORE_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
| 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // Notifies |loader_| on the UI thread that the request was redirected. | 53 // Notifies |loader_| on the UI thread that the request was redirected. |
| 54 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, | 54 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, |
| 55 ResourceResponse* response); | 55 ResourceResponse* response); |
| 56 | 56 |
| 57 // Notifies |loader_| on the UI thread that the response started. | 57 // Notifies |loader_| on the UI thread that the response started. |
| 58 void NotifyResponseStarted(ResourceResponse* response, | 58 void NotifyResponseStarted(ResourceResponse* response, |
| 59 scoped_ptr<StreamHandle> body); | 59 scoped_ptr<StreamHandle> body); |
| 60 | 60 |
| 61 // Notifies |loader_| on the UI thread that the request failed. | 61 // Notifies |loader_| on the UI thread that the request failed. |
| 62 void NotifyRequestFailed(int net_error); | 62 void NotifyRequestFailed(bool in_cache, int net_error); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 base::WeakPtr<NavigationURLLoaderImpl> loader_; | 65 base::WeakPtr<NavigationURLLoaderImpl> loader_; |
| 66 NavigationResourceHandler* resource_handler_; | 66 NavigationResourceHandler* resource_handler_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); | 68 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace content | 71 } // namespace content |
| 72 | 72 |
| 73 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 73 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
| OLD | NEW |