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

Side by Side Diff: chrome/browser/tabs/tab_strip_model_delegate.h

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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) 2012 The Chromium Authors. All rights reserved. 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 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_TABS_TAB_STRIP_MODEL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_
6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_ 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "content/public/common/page_transition_types.h" 11 #include "content/public/common/page_transition_types.h"
12 12
13 class Browser; 13 class Browser;
14 class DockInfo; 14 class DockInfo;
15 class GURL; 15 class GURL;
16 class Profile; 16 class Profile;
17 class SiteInstance;
18 class TabContents; 17 class TabContents;
19 class TabContentsWrapper; 18 class TabContentsWrapper;
20 namespace content { 19 namespace content {
20 class SiteInstance;
21 struct Referrer; 21 struct Referrer;
22 } 22 }
23 namespace gfx { 23 namespace gfx {
24 class Rect; 24 class Rect;
25 } 25 }
26 26
27 /////////////////////////////////////////////////////////////////////////////// 27 ///////////////////////////////////////////////////////////////////////////////
28 // 28 //
29 // TabStripModelDelegate 29 // TabStripModelDelegate
30 // 30 //
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // the delegate since the TabContents may require special circumstances to 65 // the delegate since the TabContents may require special circumstances to
66 // exist for it to be constructed (e.g. a parent HWND). 66 // exist for it to be constructed (e.g. a parent HWND).
67 // If |defer_load| is true, the navigation controller doesn't load the url. 67 // If |defer_load| is true, the navigation controller doesn't load the url.
68 // If |instance| is not null, its process is used to render the tab. 68 // If |instance| is not null, its process is used to render the tab.
69 virtual TabContentsWrapper* CreateTabContentsForURL( 69 virtual TabContentsWrapper* CreateTabContentsForURL(
70 const GURL& url, 70 const GURL& url,
71 const content::Referrer& referrer, 71 const content::Referrer& referrer,
72 Profile* profile, 72 Profile* profile,
73 content::PageTransition transition, 73 content::PageTransition transition,
74 bool defer_load, 74 bool defer_load,
75 SiteInstance* instance) const = 0; 75 content::SiteInstance* instance) const = 0;
76 76
77 // Returns whether some contents can be duplicated. 77 // Returns whether some contents can be duplicated.
78 virtual bool CanDuplicateContentsAt(int index) = 0; 78 virtual bool CanDuplicateContentsAt(int index) = 0;
79 79
80 // Duplicates the contents at the provided index and places it into its own 80 // Duplicates the contents at the provided index and places it into its own
81 // window. 81 // window.
82 virtual void DuplicateContentsAt(int index) = 0; 82 virtual void DuplicateContentsAt(int index) = 0;
83 83
84 // Called when a drag session has completed and the frame that initiated the 84 // Called when a drag session has completed and the frame that initiated the
85 // the session should be closed. 85 // the session should be closed.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual bool CanCloseTab() const = 0; 118 virtual bool CanCloseTab() const = 0;
119 119
120 // Returns true if the tab strip can use large icons. 120 // Returns true if the tab strip can use large icons.
121 virtual bool LargeIconsPermitted() const = 0; 121 virtual bool LargeIconsPermitted() const = 0;
122 122
123 protected: 123 protected:
124 virtual ~TabStripModelDelegate() {} 124 virtual ~TabStripModelDelegate() {}
125 }; 125 };
126 126
127 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_ 127 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tabs/default_tab_handler.cc ('k') | chrome/browser/tabs/tab_strip_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698