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

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

Issue 92873004: Prevent the browser process from creating duplicate RenderViewHosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't kill invalid process. Created 7 years 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
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_TEST_TEST_WEB_CONTENTS_H_ 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_H_
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ 6 #define CONTENT_TEST_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int error_code, 99 int error_code,
100 const string16& error_description); 100 const string16& error_description);
101 101
102 protected: 102 protected:
103 // The deprecated WebContentsTester still needs to subclass this. 103 // The deprecated WebContentsTester still needs to subclass this.
104 explicit TestWebContents(BrowserContext* browser_context); 104 explicit TestWebContents(BrowserContext* browser_context);
105 105
106 private: 106 private:
107 // WebContentsImpl overrides 107 // WebContentsImpl overrides
108 virtual void CreateNewWindow( 108 virtual void CreateNewWindow(
109 int render_process_id,
109 int route_id, 110 int route_id,
110 int main_frame_route_id, 111 int main_frame_route_id,
111 const ViewHostMsg_CreateWindow_Params& params, 112 const ViewHostMsg_CreateWindow_Params& params,
112 SessionStorageNamespace* session_storage_namespace) OVERRIDE; 113 SessionStorageNamespace* session_storage_namespace) OVERRIDE;
113 virtual void CreateNewWidget(int route_id, 114 virtual void CreateNewWidget(int route_id,
114 blink::WebPopupType popup_type) OVERRIDE; 115 blink::WebPopupType popup_type) OVERRIDE;
115 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; 116 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
116 virtual void ShowCreatedWindow(int route_id, 117 virtual void ShowCreatedWindow(int route_id,
117 WindowOpenDisposition disposition, 118 WindowOpenDisposition disposition,
118 const gfx::Rect& initial_pos, 119 const gfx::Rect& initial_pos,
119 bool user_gesture) OVERRIDE; 120 bool user_gesture) OVERRIDE;
120 virtual void ShowCreatedWidget(int route_id, 121 virtual void ShowCreatedWidget(int route_id,
121 const gfx::Rect& initial_pos) OVERRIDE; 122 const gfx::Rect& initial_pos) OVERRIDE;
122 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; 123 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
123 124
124 125
125 RenderViewHostDelegateView* delegate_view_override_; 126 RenderViewHostDelegateView* delegate_view_override_;
126 127
127 // Expectations for arguments of |SetHistoryLengthAndPrune()|. 128 // Expectations for arguments of |SetHistoryLengthAndPrune()|.
128 bool expect_set_history_length_and_prune_; 129 bool expect_set_history_length_and_prune_;
129 scoped_refptr<const SiteInstanceImpl> 130 scoped_refptr<const SiteInstanceImpl>
130 expect_set_history_length_and_prune_site_instance_; 131 expect_set_history_length_and_prune_site_instance_;
131 int expect_set_history_length_and_prune_history_length_; 132 int expect_set_history_length_and_prune_history_length_;
132 int32 expect_set_history_length_and_prune_min_page_id_; 133 int32 expect_set_history_length_and_prune_min_page_id_;
133 }; 134 };
134 135
135 } // namespace content 136 } // namespace content
136 137
137 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ 138 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698