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

Side by Side Diff: content/test/test_frame_navigation_observer.h

Issue 600043004: Add render_frame_host to WebContentsObserver::DidNavigateAnyFrame(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_ 5 #ifndef CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_
6 #define CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_ 6 #define CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 28 matching lines...) Expand all
39 void Wait(); 39 void Wait();
40 40
41 private: 41 private:
42 // WebContentsObserver 42 // WebContentsObserver
43 virtual void DidStartProvisionalLoadForFrame( 43 virtual void DidStartProvisionalLoadForFrame(
44 RenderFrameHost* render_frame_host, 44 RenderFrameHost* render_frame_host,
45 const GURL& validated_url, 45 const GURL& validated_url,
46 bool is_error_page, 46 bool is_error_page,
47 bool is_iframe_srcdoc) override; 47 bool is_iframe_srcdoc) override;
48 virtual void DidNavigateAnyFrame( 48 virtual void DidNavigateAnyFrame(
49 RenderFrameHost* render_frame_host,
49 const LoadCommittedDetails& details, 50 const LoadCommittedDetails& details,
50 const FrameNavigateParams& params) override; 51 const FrameNavigateParams& params) override;
51 52
52 // The id of the FrameTreeNode in which navigations are peformed. 53 // The id of the FrameTreeNode in which navigations are peformed.
53 int frame_tree_node_id_; 54 int frame_tree_node_id_;
54 55
55 // If true the navigation has started. 56 // If true the navigation has started.
56 bool navigation_started_; 57 bool navigation_started_;
57 58
58 // The number of navigations that have been completed. 59 // The number of navigations that have been completed.
59 int navigations_completed_; 60 int navigations_completed_;
60 61
61 // The number of navigations to wait for. 62 // The number of navigations to wait for.
62 int number_of_navigations_; 63 int number_of_navigations_;
63 64
64 // The MessageLoopRunner used to spin the message loop. 65 // The MessageLoopRunner used to spin the message loop.
65 scoped_refptr<MessageLoopRunner> message_loop_runner_; 66 scoped_refptr<MessageLoopRunner> message_loop_runner_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(TestFrameNavigationObserver); 68 DISALLOW_COPY_AND_ASSIGN(TestFrameNavigationObserver);
68 }; 69 };
69 70
70 } // namespace content 71 } // namespace content
71 72
72 #endif // CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_ 73 #endif // CONTENT_TEST_TEST_FRAME_NAVIGATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_observer.h ('k') | content/test/test_frame_navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698