Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: content/browser/loader/navigation_url_loader_impl_core.h

Issue 872473003: PlzNavigate: Remove the RequestNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 24 matching lines...) Expand all
35 // Creates a new NavigationURLLoaderImplCore that forwards signals back to 35 // Creates a new NavigationURLLoaderImplCore that forwards signals back to
36 // |loader| on the UI thread. 36 // |loader| on the UI thread.
37 explicit NavigationURLLoaderImplCore( 37 explicit NavigationURLLoaderImplCore(
38 const base::WeakPtr<NavigationURLLoaderImpl>& loader); 38 const base::WeakPtr<NavigationURLLoaderImpl>& loader);
39 ~NavigationURLLoaderImplCore(); 39 ~NavigationURLLoaderImplCore();
40 40
41 // Starts the request. 41 // Starts the request.
42 void Start(ResourceContext* resource_context, 42 void Start(ResourceContext* resource_context,
43 int64 frame_tree_node_id, 43 int64 frame_tree_node_id,
44 const CommonNavigationParams& common_params, 44 const CommonNavigationParams& common_params,
45 scoped_ptr<NavigationRequestInfo> request_info, 45 scoped_ptr<NavigationRequestInfo> request_info);
46 ResourceRequestBody* request_body);
47 46
48 // Follows the current pending redirect. 47 // Follows the current pending redirect.
49 void FollowRedirect(); 48 void FollowRedirect();
50 49
51 void set_resource_handler(NavigationResourceHandler* resource_handler) { 50 void set_resource_handler(NavigationResourceHandler* resource_handler) {
52 resource_handler_ = resource_handler; 51 resource_handler_ = resource_handler;
53 } 52 }
54 53
55 // Notifies |loader_| on the UI thread that the request was redirected. 54 // Notifies |loader_| on the UI thread that the request was redirected.
56 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, 55 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info,
57 ResourceResponse* response); 56 ResourceResponse* response);
58 57
59 // Notifies |loader_| on the UI thread that the response started. 58 // Notifies |loader_| on the UI thread that the response started.
60 void NotifyResponseStarted(ResourceResponse* response, 59 void NotifyResponseStarted(ResourceResponse* response,
61 scoped_ptr<StreamHandle> body); 60 scoped_ptr<StreamHandle> body);
62 61
63 // Notifies |loader_| on the UI thread that the request failed. 62 // Notifies |loader_| on the UI thread that the request failed.
64 void NotifyRequestFailed(int net_error); 63 void NotifyRequestFailed(int net_error);
65 64
66 private: 65 private:
67 base::WeakPtr<NavigationURLLoaderImpl> loader_; 66 base::WeakPtr<NavigationURLLoaderImpl> loader_;
68 NavigationResourceHandler* resource_handler_; 67 NavigationResourceHandler* resource_handler_;
69 68
70 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); 69 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
71 }; 70 };
72 71
73 } // namespace content 72 } // namespace content
74 73
75 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 74 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698