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

Side by Side Diff: content/browser/web_contents/test_web_contents.h

Issue 11801011: Also filter the URLs from incoming non-provisional navigation IPCs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/web_contents/test_web_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_
7 7
8 #include "content/browser/web_contents/web_contents_impl.h" 8 #include "content/browser/web_contents/web_contents_impl.h"
9 #include "content/public/common/page_transition_types.h" 9 #include "content/public/common/page_transition_types.h"
10 #include "content/public/test/web_contents_tester.h" 10 #include "content/public/test/web_contents_tester.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void ExpectSetHistoryLengthAndPrune(const SiteInstance* site_instance, 83 void ExpectSetHistoryLengthAndPrune(const SiteInstance* site_instance,
84 int history_length, 84 int history_length,
85 int32 min_page_id); 85 int32 min_page_id);
86 86
87 // Compares the arguments passed in with the expected arguments passed in 87 // Compares the arguments passed in with the expected arguments passed in
88 // to |ExpectSetHistoryLengthAndPrune()|. 88 // to |ExpectSetHistoryLengthAndPrune()|.
89 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance, 89 virtual void SetHistoryLengthAndPrune(const SiteInstance* site_instance,
90 int history_length, 90 int history_length,
91 int32 min_page_id) OVERRIDE; 91 int32 min_page_id) OVERRIDE;
92 92
93 void TestDidFinishLoad(int64 frame_id, const GURL& url, bool is_main_frame);
94 void TestDidFailLoadWithError(int64 frame_id,
95 const GURL& url,
96 bool is_main_frame,
97 int error_code,
98 const string16& error_description);
99
93 protected: 100 protected:
94 // The deprecated WebContentsTester still needs to subclass this. 101 // The deprecated WebContentsTester still needs to subclass this.
95 explicit TestWebContents(BrowserContext* browser_context); 102 explicit TestWebContents(BrowserContext* browser_context);
96 103
97 private: 104 private:
98 // WebContentsImpl overrides 105 // WebContentsImpl overrides
99 virtual void CreateNewWindow( 106 virtual void CreateNewWindow(
100 int route_id, 107 int route_id,
101 const ViewHostMsg_CreateWindow_Params& params, 108 const ViewHostMsg_CreateWindow_Params& params,
102 SessionStorageNamespace* session_storage_namespace) OVERRIDE; 109 SessionStorageNamespace* session_storage_namespace) OVERRIDE;
(...skipping 15 matching lines...) Expand all
118 bool expect_set_history_length_and_prune_; 125 bool expect_set_history_length_and_prune_;
119 scoped_refptr<const SiteInstanceImpl> 126 scoped_refptr<const SiteInstanceImpl>
120 expect_set_history_length_and_prune_site_instance_; 127 expect_set_history_length_and_prune_site_instance_;
121 int expect_set_history_length_and_prune_history_length_; 128 int expect_set_history_length_and_prune_history_length_;
122 int32 expect_set_history_length_and_prune_min_page_id_; 129 int32 expect_set_history_length_and_prune_min_page_id_;
123 }; 130 };
124 131
125 } // namespace content 132 } // namespace content
126 133
127 #endif // CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_ 134 #endif // CONTENT_BROWSER_WEB_CONTENTS_TEST_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/test_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698