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

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: Ready for initial review. 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 // Helper functions for sending notifications. 495 // Helper functions for sending notifications.
495 void NotifySwapped(); 496 void NotifySwapped();
496 void NotifyConnected(); 497 void NotifyConnected();
497 void NotifyDisconnected(); 498 void NotifyDisconnected();
498 499
499 void SetEncoding(const std::string& encoding); 500 void SetEncoding(const std::string& encoding);
500 501
501 // Save a URL to the local filesystem. 502 // Save a URL to the local filesystem.
502 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame); 503 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame);
503 504
505 RenderViewHostImpl* GetRenderViewHostImpl();
506
504 // Stores random bits of data for others to associate with this object. 507 // Stores random bits of data for others to associate with this object.
505 // WARNING: this needs to be deleted after NavigationController. 508 // WARNING: this needs to be deleted after NavigationController.
506 base::PropertyBag property_bag_; 509 base::PropertyBag property_bag_;
507 510
508 // Data for core operation --------------------------------------------------- 511 // Data for core operation ---------------------------------------------------
509 512
510 // Delegate for notifying our owner about stuff. Not owned by us. 513 // Delegate for notifying our owner about stuff. Not owned by us.
511 content::WebContentsDelegate* delegate_; 514 content::WebContentsDelegate* delegate_;
512 515
513 // Handles the back/forward list and loading. 516 // Handles the back/forward list and loading.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 // (full-page plugins for now only) permissions. 648 // (full-page plugins for now only) permissions.
646 int content_restrictions_; 649 int content_restrictions_;
647 650
648 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. 651 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS.
649 content::ViewType view_type_; 652 content::ViewType view_type_;
650 653
651 DISALLOW_COPY_AND_ASSIGN(TabContents); 654 DISALLOW_COPY_AND_ASSIGN(TabContents);
652 }; 655 };
653 656
654 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 657 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698