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

Side by Side Diff: content/browser/frame_host/navigation_request.h

Issue 2783723002: Keep track in the browser of which frames have onunload and onbeforeunload handlers. (Closed)
Patch Set: fix content_browsertests with plznavigate and also remove now unnecessary unloadcontroller change Created 3 years, 8 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_FRAME_HOST_NAVIGATION_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/weak_ptr.h"
13 #include "content/browser/frame_host/navigation_entry_impl.h" 14 #include "content/browser/frame_host/navigation_entry_impl.h"
14 #include "content/browser/loader/navigation_url_loader_delegate.h" 15 #include "content/browser/loader/navigation_url_loader_delegate.h"
15 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
16 #include "content/common/frame_message_enums.h" 17 #include "content/common/frame_message_enums.h"
17 #include "content/common/navigation_params.h" 18 #include "content/common/navigation_params.h"
18 #include "content/public/browser/navigation_throttle.h" 19 #include "content/public/browser/navigation_throttle.h"
19 #include "content/public/common/previews_state.h" 20 #include "content/public/common/previews_state.h"
20 21
21 namespace content { 22 namespace content {
22 23
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 249
249 std::unique_ptr<NavigationHandleImpl> navigation_handle_; 250 std::unique_ptr<NavigationHandleImpl> navigation_handle_;
250 251
251 // Holds the ResourceResponse and the StreamHandle for the navigation while 252 // Holds the ResourceResponse and the StreamHandle for the navigation while
252 // the WillProcessResponse checks are performed by the NavigationHandle. 253 // the WillProcessResponse checks are performed by the NavigationHandle.
253 scoped_refptr<ResourceResponse> response_; 254 scoped_refptr<ResourceResponse> response_;
254 std::unique_ptr<StreamHandle> body_; 255 std::unique_ptr<StreamHandle> body_;
255 256
256 base::Closure on_start_checks_complete_closure_; 257 base::Closure on_start_checks_complete_closure_;
257 258
259 base::WeakPtrFactory<NavigationRequest> weak_factory_;
260
258 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 261 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
259 }; 262 };
260 263
261 } // namespace content 264 } // namespace content
262 265
263 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 266 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698