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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.cc

Issue 2775003: Added plumbing to transport the frame name between RenderViewHost and the Webkit layer. (Closed)
Patch Set: Final version for the record Created 10 years, 6 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "chrome/browser/browser_url_handler.h" 7 #include "chrome/browser/browser_url_handler.h"
8 #include "chrome/browser/renderer_host/test/test_backing_store.h" 8 #include "chrome/browser/renderer_host/test/test_backing_store.h"
9 #include "chrome/browser/tab_contents/test_tab_contents.h" 9 #include "chrome/browser/tab_contents/test_tab_contents.h"
10 #include "chrome/common/dom_storage_common.h" 10 #include "chrome/common/dom_storage_common.h"
(...skipping 14 matching lines...) Expand all
25 25
26 TestRenderViewHost::~TestRenderViewHost() { 26 TestRenderViewHost::~TestRenderViewHost() {
27 if (delete_counter_) 27 if (delete_counter_)
28 ++*delete_counter_; 28 ++*delete_counter_;
29 29
30 // Since this isn't a traditional view, we have to delete it. 30 // Since this isn't a traditional view, we have to delete it.
31 delete view(); 31 delete view();
32 } 32 }
33 33
34 bool TestRenderViewHost::CreateRenderView( 34 bool TestRenderViewHost::CreateRenderView(
35 URLRequestContextGetter* request_context) { 35 URLRequestContextGetter* request_context, const string16& frame_name) {
36 DCHECK(!render_view_created_); 36 DCHECK(!render_view_created_);
37 render_view_created_ = true; 37 render_view_created_ = true;
38 process()->ViewCreated(); 38 process()->ViewCreated();
39 return true; 39 return true;
40 } 40 }
41 41
42 bool TestRenderViewHost::IsRenderViewLive() const { 42 bool TestRenderViewHost::IsRenderViewLive() const {
43 return render_view_created_; 43 return render_view_created_;
44 } 44 }
45 45
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 contents_.reset(); 167 contents_.reset();
168 168
169 // Make sure that we flush any messages related to TabContents destruction 169 // Make sure that we flush any messages related to TabContents destruction
170 // before we destroy the profile. 170 // before we destroy the profile.
171 MessageLoop::current()->RunAllPending(); 171 MessageLoop::current()->RunAllPending();
172 172
173 // Release the profile on the UI thread. 173 // Release the profile on the UI thread.
174 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 174 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
175 message_loop_.RunAllPending(); 175 message_loop_.RunAllPending();
176 } 176 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/browser/tab_contents/background_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698