Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_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 23 matching lines...) Expand all Loading... | |
| 34 | 34 |
| 35 // Wait for navigation to succeed. | 35 // Wait for navigation to succeed. |
| 36 void Wait(); | 36 void Wait(); |
| 37 | 37 |
| 38 // Returns the RenderFrameHost that navigated. | 38 // Returns the RenderFrameHost that navigated. |
| 39 content::RenderFrameHost* render_frame_host() { return render_frame_host_; } | 39 content::RenderFrameHost* render_frame_host() { return render_frame_host_; } |
| 40 | 40 |
| 41 // content::WebContentsObserver: | 41 // content::WebContentsObserver: |
| 42 void DidFinishLoad(content::RenderFrameHost* render_frame_host, | 42 void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
| 43 const GURL& validated_url) override; | 43 const GURL& validated_url) override; |
| 44 void NavigationEntryCommitted( | 44 void DidFinishNavigation( |
| 45 const content::LoadCommittedDetails& load_details) override; | 45 content::NavigationHandle* navigation_handle) override; |
|
nasko
2016/03/16 18:20:04
very minor nit: Timewise, navigation is finished,
vabr (Chromium)
2016/03/17 15:36:29
Done.
| |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 std::string wait_for_path_; | 48 std::string wait_for_path_; |
| 49 content::RenderFrameHost* render_frame_host_; | 49 content::RenderFrameHost* render_frame_host_; |
| 50 bool quit_on_entry_committed_; | 50 bool quit_on_entry_committed_; |
| 51 scoped_refptr<content::MessageLoopRunner> message_loop_runner_; | 51 scoped_refptr<content::MessageLoopRunner> message_loop_runner_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(NavigationObserver); | 53 DISALLOW_COPY_AND_ASSIGN(NavigationObserver); |
| 54 }; | 54 }; |
| 55 | 55 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 | 145 |
| 146 // Accessors | 146 // Accessors |
| 147 content::WebContents* WebContents(); | 147 content::WebContents* WebContents(); |
| 148 content::RenderViewHost* RenderViewHost(); | 148 content::RenderViewHost* RenderViewHost(); |
| 149 | 149 |
| 150 private: | 150 private: |
| 151 DISALLOW_COPY_AND_ASSIGN(PasswordManagerBrowserTestBase); | 151 DISALLOW_COPY_AND_ASSIGN(PasswordManagerBrowserTestBase); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ | 154 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_TEST_BASE_H_ |
| OLD | NEW |