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

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

Issue 8276022: Move url_constants.h to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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.cc ('k') | content/common/test_url_constants.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_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"
11 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/common/url_constants.h" 12 #include "content/public/common/url_constants.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "webkit/glue/web_intent_data.h" 14 #include "webkit/glue/web_intent_data.h"
15 15
16 TabContentsDelegate::TabContentsDelegate() { 16 TabContentsDelegate::TabContentsDelegate() {
17 } 17 }
18 18
19 TabContents* TabContentsDelegate::OpenURLFromTab( 19 TabContents* TabContentsDelegate::OpenURLFromTab(
20 TabContents* source, 20 TabContents* source,
21 const GURL& url, 21 const GURL& url,
22 const GURL& referrer, 22 const GURL& referrer,
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 void TabContentsDelegate::Attach(TabContents* tab_contents) { 338 void TabContentsDelegate::Attach(TabContents* tab_contents) {
339 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end()); 339 DCHECK(attached_contents_.find(tab_contents) == attached_contents_.end());
340 attached_contents_.insert(tab_contents); 340 attached_contents_.insert(tab_contents);
341 } 341 }
342 342
343 void TabContentsDelegate::Detach(TabContents* tab_contents) { 343 void TabContentsDelegate::Detach(TabContents* tab_contents) {
344 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end()); 344 DCHECK(attached_contents_.find(tab_contents) != attached_contents_.end());
345 attached_contents_.erase(tab_contents); 345 attached_contents_.erase(tab_contents);
346 } 346 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/common/test_url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698