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

Side by Side Diff: content/browser/content_browser_client.h

Issue 7717011: Get rid of static TabContentsView::Create function since the interface is in content, but the imp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix mac build Created 9 years, 4 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 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 class GURL; 21 class GURL;
22 class MHTMLGenerationManager; 22 class MHTMLGenerationManager;
23 class PluginProcessHost; 23 class PluginProcessHost;
24 class QuotaPermissionContext; 24 class QuotaPermissionContext;
25 class RenderViewHost; 25 class RenderViewHost;
26 class ResourceDispatcherHost; 26 class ResourceDispatcherHost;
27 class SSLCertErrorHandler; 27 class SSLCertErrorHandler;
28 class SSLClientAuthHandler; 28 class SSLClientAuthHandler;
29 class SkBitmap; 29 class SkBitmap;
30 class TabContents; 30 class TabContents;
31 class TabContentsView;
31 class WorkerProcessHost; 32 class WorkerProcessHost;
32 struct DesktopNotificationHostMsg_Show_Params; 33 struct DesktopNotificationHostMsg_Show_Params;
33 struct WebPreferences; 34 struct WebPreferences;
34 35
35 namespace crypto { 36 namespace crypto {
36 class CryptoModuleBlockingPasswordDelegate; 37 class CryptoModuleBlockingPasswordDelegate;
37 } 38 }
38 39
39 namespace net { 40 namespace net {
40 class CookieList; 41 class CookieList;
(...skipping 20 matching lines...) Expand all
61 // principal implementation. The methods are assumed to be called on the UI 62 // principal implementation. The methods are assumed to be called on the UI
62 // thread unless otherwise specified. Use this "escape hatch" sparingly, to 63 // thread unless otherwise specified. Use this "escape hatch" sparingly, to
63 // avoid the embedder interface ballooning and becoming very specific to Chrome. 64 // avoid the embedder interface ballooning and becoming very specific to Chrome.
64 // (Often, the call out to the client can happen in a different part of the code 65 // (Often, the call out to the client can happen in a different part of the code
65 // that either already has a hook out to the embedder, or calls out to one of 66 // that either already has a hook out to the embedder, or calls out to one of
66 // the observer interfaces.) 67 // the observer interfaces.)
67 class ContentBrowserClient { 68 class ContentBrowserClient {
68 public: 69 public:
69 virtual ~ContentBrowserClient() {} 70 virtual ~ContentBrowserClient() {}
70 71
72 virtual TabContentsView* CreateTabContentsView(TabContents* tab_contents) = 0;
73
71 // Notifies that a new RenderHostView has been created. 74 // Notifies that a new RenderHostView has been created.
72 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) = 0; 75 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) = 0;
73 76
74 // Notifies that a BrowserRenderProcessHost has been created. This is called 77 // Notifies that a BrowserRenderProcessHost has been created. This is called
75 // before the content layer adds its own BrowserMessageFilters, so that the 78 // before the content layer adds its own BrowserMessageFilters, so that the
76 // embedder's IPC filters have priority. 79 // embedder's IPC filters have priority.
77 virtual void BrowserRenderProcessHostCreated( 80 virtual void BrowserRenderProcessHostCreated(
78 BrowserRenderProcessHost* host) = 0; 81 BrowserRenderProcessHost* host) = 0;
79 82
80 // Notifies that a PluginProcessHost has been created. This is called 83 // Notifies that a PluginProcessHost has been created. This is called
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // This is called on a worker thread. 290 // This is called on a worker thread.
288 virtual 291 virtual
289 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 292 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
290 const GURL& url) = 0; 293 const GURL& url) = 0;
291 #endif 294 #endif
292 }; 295 };
293 296
294 } // namespace content 297 } // namespace content
295 298
296 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 299 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc ('k') | content/browser/mock_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698