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

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

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slight tweaking for comments Created 9 years, 5 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
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_delegate.h" 5 #include "content/browser/tab_contents/tab_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/browser/javascript_dialogs.h" 10 #include "content/browser/javascript_dialogs.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { 140 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) {
141 return false; 141 return false;
142 } 142 }
143 143
144 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { 144 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) {
145 return false; 145 return false;
146 } 146 }
147 147
148 void TabContentsDelegate::ShowPageInfo(Profile* profile, 148 void TabContentsDelegate::ShowPageInfo(content::BrowserContext* browser_context,
149 const GURL& url, 149 const GURL& url,
150 const NavigationEntry::SSLStatus& ssl, 150 const NavigationEntry::SSLStatus& ssl,
151 bool show_history) { 151 bool show_history) {
152 } 152 }
153 153
154 void TabContentsDelegate::ViewSourceForTab(TabContents* source, 154 void TabContentsDelegate::ViewSourceForTab(TabContents* source,
155 const GURL& page_url) { 155 const GURL& page_url) {
156 // Fall back implementation based entirely on the view-source scheme. 156 // Fall back implementation based entirely on the view-source scheme.
157 // It suffers from http://crbug.com/523 and that is why browser overrides 157 // It suffers from http://crbug.com/523 and that is why browser overrides
158 // it with proper implementation. 158 // it with proper implementation.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 284
285 void TabContentsDelegate::Attach(TabContents* tab_contents) { 285 void TabContentsDelegate::Attach(TabContents* tab_contents) {
286 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); 286 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end());
287 attached_contents_.insert(tab_contents); 287 attached_contents_.insert(tab_contents);
288 } 288 }
289 289
290 void TabContentsDelegate::Detach(TabContents* tab_contents) { 290 void TabContentsDelegate::Detach(TabContents* tab_contents) {
291 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); 291 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
292 attached_contents_.erase(tab_contents); 292 attached_contents_.erase(tab_contents);
293 } 293 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_delegate.h ('k') | content/browser/webui/empty_web_ui_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698