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

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

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR, fix a weird runtime issue. Created 8 years, 9 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 15 matching lines...) Expand all
26 #include "ui/gfx/size.h" 26 #include "ui/gfx/size.h"
27 #include "webkit/glue/resource_type.h" 27 #include "webkit/glue/resource_type.h"
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 #include "base/win/scoped_handle.h" 30 #include "base/win/scoped_handle.h"
31 #endif 31 #endif
32 32
33 class InterstitialPageImpl; 33 class InterstitialPageImpl;
34 class LoadNotificationDetails; 34 class LoadNotificationDetails;
35 class RenderViewHost; 35 class RenderViewHost;
36 class RenderViewHostImpl;
36 class SavePackage; 37 class SavePackage;
37 class SessionStorageNamespaceImpl; 38 class SessionStorageNamespaceImpl;
38 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; 39 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
39 40
40 namespace content { 41 namespace content {
41 class DownloadItem; 42 class DownloadItem;
42 class SiteInstance; 43 class SiteInstance;
43 class JavaScriptDialogCreator; 44 class JavaScriptDialogCreator;
44 class WebContentsDelegate; 45 class WebContentsDelegate;
45 class WebContentsObserver; 46 class WebContentsObserver;
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // Helper functions for sending notifications. 496 // Helper functions for sending notifications.
496 void NotifySwapped(); 497 void NotifySwapped();
497 void NotifyConnected(); 498 void NotifyConnected();
498 void NotifyDisconnected(); 499 void NotifyDisconnected();
499 500
500 void SetEncoding(const std::string& encoding); 501 void SetEncoding(const std::string& encoding);
501 502
502 // Save a URL to the local filesystem. 503 // Save a URL to the local filesystem.
503 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame); 504 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame);
504 505
506 RenderViewHostImpl* GetRenderViewHostImpl();
507
505 // Stores random bits of data for others to associate with this object. 508 // Stores random bits of data for others to associate with this object.
506 // WARNING: this needs to be deleted after NavigationController. 509 // WARNING: this needs to be deleted after NavigationController.
507 base::PropertyBag property_bag_; 510 base::PropertyBag property_bag_;
508 511
509 // Data for core operation --------------------------------------------------- 512 // Data for core operation ---------------------------------------------------
510 513
511 // Delegate for notifying our owner about stuff. Not owned by us. 514 // Delegate for notifying our owner about stuff. Not owned by us.
512 content::WebContentsDelegate* delegate_; 515 content::WebContentsDelegate* delegate_;
513 516
514 // Handles the back/forward list and loading. 517 // Handles the back/forward list and loading.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // (full-page plugins for now only) permissions. 649 // (full-page plugins for now only) permissions.
647 int content_restrictions_; 650 int content_restrictions_;
648 651
649 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. 652 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS.
650 content::ViewType view_type_; 653 content::ViewType view_type_;
651 654
652 DISALLOW_COPY_AND_ASSIGN(TabContents); 655 DISALLOW_COPY_AND_ASSIGN(TabContents);
653 }; 656 };
654 657
655 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 658 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698