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

Side by Side Diff: chrome/browser/tab_contents/tab_util.h

Issue 6973035: Move download stuff to download tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment tweak 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
OLDNEW
1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 class TabContents; 9 class TabContents;
10 class TabContentsWrapper;
10 11
11 namespace tab_util { 12 namespace tab_util {
12 13
13 // Helper to find the TabContents that originated the given request. Can be 14 // Helper to find the TabContents that originated the given request. Can be
14 // NULL if the tab has been closed or some other error occurs. 15 // NULL if the tab has been closed or some other error occurs.
15 // Should only be called from the UI thread, since it accesses TabContent. 16 // Should only be called from the UI thread, since it accesses TabContents.
16 TabContents* GetTabContentsByID(int render_process_host_id, int routing_id); 17 TabContents* GetTabContentsByID(int render_process_host_id, int routing_id);
17 18
19 // Helper to find the TabContentsWrapper that originated the given request. Can
20 // be NULL if the tab has been closed or some other error occurs. Should only
21 // be called from the UI thread, since it accesses TabContents.
22 TabContentsWrapper* GetTabContentsWrapperByID(int render_process_host_id,
23 int routing_id);
24
18 } // namespace tab_util 25 } // namespace tab_util
19 26
20 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_ 27 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698