1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_
18 // Helper to find the WebContents that originated the given request. Can be
19 // NULL if the tab has been closed or some other error occurs.
20 // Should only be called from the UI thread, since it accesses WebContents.
21 content::WebContents
* GetWebContentsByID(int render_process_id
,
24 // Returns a new SiteInstance for WebUI and app URLs. Returns NULL otherwise.
25 content::SiteInstance
* GetSiteInstanceForNewTab(
29 } // namespace tab_util
31 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_UTIL_H_