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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 10409029: Add a factory function to create WebContentsView implementations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('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) 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #include "webkit/glue/resource_type.h" 29 #include "webkit/glue/resource_type.h"
30 30
31 #if defined(OS_WIN) 31 #if defined(OS_WIN)
32 #include "base/win/scoped_handle.h" 32 #include "base/win/scoped_handle.h"
33 #endif 33 #endif
34 34
35 class InterstitialPageImpl; 35 class InterstitialPageImpl;
36 class SavePackage; 36 class SavePackage;
37 class SessionStorageNamespaceImpl; 37 class SessionStorageNamespaceImpl;
38 class WebContentsImpl;
38 struct ViewMsg_PostMessage_Params; 39 struct ViewMsg_PostMessage_Params;
39 40
40 namespace content { 41 namespace content {
41 class ColorChooser; 42 class ColorChooser;
42 class DownloadItem; 43 class DownloadItem;
43 class JavaScriptDialogCreator; 44 class JavaScriptDialogCreator;
44 class RenderViewHost; 45 class RenderViewHost;
45 class RenderViewHostImpl; 46 class RenderViewHostImpl;
46 class SiteInstance; 47 class SiteInstance;
47 class TestWebContents; 48 class TestWebContents;
48 class WebContentsDelegate; 49 class WebContentsDelegate;
49 class WebContentsObserver; 50 class WebContentsObserver;
50 class WebContentsView; 51 class WebContentsView;
52 class WebContentsViewDelegate;
51 struct LoadNotificationDetails; 53 struct LoadNotificationDetails;
54
55 // Factory function for the implementations that content knows about. Takes
56 // ownership of |delegate|.
57 WebContentsView* CreateWebContentsView(WebContentsImpl* web_contents,
58 WebContentsViewDelegate* delegate);
52 } 59 }
53 60
54 namespace webkit_glue { 61 namespace webkit_glue {
55 struct WebIntentData; 62 struct WebIntentData;
56 } 63 }
57 64
58 class CONTENT_EXPORT WebContentsImpl 65 class CONTENT_EXPORT WebContentsImpl
59 : public NON_EXPORTED_BASE(content::WebContents), 66 : public NON_EXPORTED_BASE(content::WebContents),
60 public content::RenderViewHostDelegate, 67 public content::RenderViewHostDelegate,
61 public content::RenderWidgetHostDelegate, 68 public content::RenderWidgetHostDelegate,
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // Type of view this WebContents is displaying. 722 // Type of view this WebContents is displaying.
716 content::ViewType view_type_; 723 content::ViewType view_type_;
717 724
718 // Color chooser that was opened by this tab. 725 // Color chooser that was opened by this tab.
719 content::ColorChooser* color_chooser_; 726 content::ColorChooser* color_chooser_;
720 727
721 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 728 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
722 }; 729 };
723 730
724 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 731 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698