| 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_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class StreamHandle; | 21 class StreamHandle; |
| 22 struct ResourceResponse; | 22 struct ResourceResponse; |
| 23 | 23 |
| 24 class NavigationURLLoaderImpl : public NavigationURLLoader { | 24 class NavigationURLLoaderImpl : public NavigationURLLoader { |
| 25 public: | 25 public: |
| 26 // The caller is responsible for ensuring that |delegate| outlives the loader. | 26 // The caller is responsible for ensuring that |delegate| outlives the loader. |
| 27 NavigationURLLoaderImpl(BrowserContext* browser_context, | 27 NavigationURLLoaderImpl(BrowserContext* browser_context, |
| 28 int64 frame_tree_node_id, | 28 int64 frame_tree_node_id, |
| 29 const CommonNavigationParams& common_params, | 29 const CommonNavigationParams& common_params, |
| 30 scoped_ptr<NavigationRequestInfo> request_info, | 30 scoped_ptr<NavigationRequestInfo> request_info, |
| 31 ResourceRequestBody* request_body, | |
| 32 NavigationURLLoaderDelegate* delegate); | 31 NavigationURLLoaderDelegate* delegate); |
| 33 ~NavigationURLLoaderImpl() override; | 32 ~NavigationURLLoaderImpl() override; |
| 34 | 33 |
| 35 // Called in response to OnRequestRedirected to continue processing the | 34 // Called in response to OnRequestRedirected to continue processing the |
| 36 // request. | 35 // request. |
| 37 void FollowRedirect() override; | 36 void FollowRedirect() override; |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 friend class NavigationURLLoaderImplCore; | 39 friend class NavigationURLLoaderImplCore; |
| 41 | 40 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 57 NavigationURLLoaderImplCore* core_; | 56 NavigationURLLoaderImplCore* core_; |
| 58 | 57 |
| 59 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; | 58 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; |
| 60 | 59 |
| 61 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); | 60 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace content | 63 } // namespace content |
| 65 | 64 |
| 66 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 65 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
| OLD | NEW |