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

Side by Side Diff: content/browser/tab_contents/tab_contents_observer.cc

Issue 6915019: Changes to not use the prerendered contents when window.opener needs to be set. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Synced for Commit. Created 9 years, 7 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 | « content/browser/tab_contents/tab_contents_observer.h ('k') | content/common/view_messages.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/tab_contents/tab_contents_observer.h" 5 #include "content/browser/tab_contents/tab_contents_observer.h"
6 6
7 #include "content/browser/renderer_host/render_view_host.h" 7 #include "content/browser/renderer_host/render_view_host.h"
8 #include "content/browser/tab_contents/tab_contents.h" 8 #include "content/browser/tab_contents/tab_contents.h"
9 9
10 TabContentsObserver::Registrar::Registrar(TabContentsObserver* observer) 10 TabContentsObserver::Registrar::Registrar(TabContentsObserver* observer)
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 void TabContentsObserver::DidStartProvisionalLoadForFrame( 43 void TabContentsObserver::DidStartProvisionalLoadForFrame(
44 int64 frame_id, 44 int64 frame_id,
45 bool is_main_frame, 45 bool is_main_frame,
46 const GURL& validated_url, 46 const GURL& validated_url,
47 bool is_error_page, 47 bool is_error_page,
48 RenderViewHost* render_view_host) { 48 RenderViewHost* render_view_host) {
49 } 49 }
50 50
51 void TabContentsObserver::ProvisionalChangeToMainFrameUrl(const GURL& url) { 51 void TabContentsObserver::ProvisionalChangeToMainFrameUrl(
52 const GURL& url,
53 bool has_opener_set) {
52 } 54 }
53 55
54 void TabContentsObserver::DidCommitProvisionalLoadForFrame( 56 void TabContentsObserver::DidCommitProvisionalLoadForFrame(
55 int64 frame_id, 57 int64 frame_id,
56 bool is_main_frame, 58 bool is_main_frame,
57 const GURL& url, 59 const GURL& url,
58 PageTransition::Type transition_type) { 60 PageTransition::Type transition_type) {
59 } 61 }
60 62
61 void TabContentsObserver::DidFailProvisionalLoad(int64 frame_id, 63 void TabContentsObserver::DidFailProvisionalLoad(int64 frame_id,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 137 }
136 138
137 void TabContentsObserver::TabContentsDestroyed() { 139 void TabContentsObserver::TabContentsDestroyed() {
138 // Do cleanup so that 'this' can safely be deleted from 140 // Do cleanup so that 'this' can safely be deleted from
139 // TabContentsDestroyed. 141 // TabContentsDestroyed.
140 tab_contents_->RemoveObserver(this); 142 tab_contents_->RemoveObserver(this);
141 TabContents* tab = tab_contents_; 143 TabContents* tab = tab_contents_;
142 tab_contents_ = NULL; 144 tab_contents_ = NULL;
143 TabContentsDestroyed(tab); 145 TabContentsDestroyed(tab);
144 } 146 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_observer.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698